From 345b6d59a1b7a1d5b0dc54c63da6a58be39db373 Mon Sep 17 00:00:00 2001 From: "Jie.F" Date: Tue, 8 Oct 2024 09:44:39 +0800 Subject: [PATCH] allow api key empty when using ollama the ollama API key is not required --- webui/Main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/Main.py b/webui/Main.py index 9456159..d3138f7 100644 --- a/webui/Main.py +++ b/webui/Main.py @@ -734,7 +734,7 @@ if start_button: scroll_to_bottom() st.stop() - if llm_provider != "g4f" and not config.app.get(f"{llm_provider}_api_key", ""): + if llm_provider != "g4f" and llm_provider != 'ollama' and not config.app.get(f"{llm_provider}_api_key", ""): st.error(tr("Please Enter the LLM API Key")) scroll_to_bottom() st.stop()