fix LLM API Key with g4f config

fix LLM API Key with g4f config
This commit is contained in:
cpanel10x 2024-04-10 15:47:39 +07:00 committed by GitHub
parent deb30579d4
commit 2a251ebbd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()