From 2a251ebbd178a8b677a03578100bc2ef75160b34 Mon Sep 17 00:00:00 2001 From: cpanel10x Date: Wed, 10 Apr 2024 15:47:39 +0700 Subject: [PATCH] fix LLM API Key with g4f config fix LLM API Key with g4f config --- webui/Main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/Main.py b/webui/Main.py index ad32c1f..2712b28 100644 --- a/webui/Main.py +++ b/webui/Main.py @@ -396,7 +396,7 @@ if start_button: scroll_to_bottom() st.stop() - if not config.app.get(f"{llm_provider}_api_key", ""): + if llm_provider != 'g4f' and not config.app.get(f"{llm_provider}_api_key", ""): st.error(tr("Please Enter the LLM API Key")) scroll_to_bottom() st.stop()