mirror of
https://github.com/harry0703/MoneyPrinterTurbo.git
synced 2026-03-05 06:17:22 +08:00
Merge pull request #508 from flingjie/main
allow api key empty when using ollama
This commit is contained in:
commit
162b5e17c3
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user