Skip to content

Commit

Permalink
Merge pull request #508 from flingjie/main
Browse files Browse the repository at this point in the history
allow api key empty when using ollama
  • Loading branch information
harry0703 authored Nov 20, 2024
2 parents 0d43ba2 + 345b6d5 commit 162b5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def save_keys_to_config(cfg_key, value):
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()
Expand Down

0 comments on commit 162b5e1

Please sign in to comment.