Skip to content

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

allow api key empty when using ollama

Jie.F345b6d59a1b7
diff --git a/webui/Main.py b/webui/Main.py
index 94561591..d3138f78 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()