Skip to content

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

docs: clarify openai-compatible provider configuration

Harry520a127157ec
diff --git a/config.example.toml b/config.example.toml
index 58992880..ec2309d7 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -51,10 +51,14 @@ ollama_model_name = ""
########## OpenAI API Key
# Get your API key at https://platform.openai.com/api-keys
+# 也可以填写兼容 OpenAI Chat Completions 协议的供应商密钥,
+# 例如 OpenRouter 这类提供自定义 base_url 的平台。
openai_api_key = ""
# No need to set it unless you want to use your own proxy
+# 如果使用兼容 OpenAI 接口的平台,请在这里填写对应的 base_url。
openai_base_url = ""
# Check your available models at https://platform.openai.com/account/limits
+# 如果使用兼容供应商,请填写该平台要求的模型 ID。
openai_model_name = "gpt-4o-mini"
########## Moonshot API Key
diff --git a/webui/Main.py b/webui/Main.py
index 1934733a..584f64b7 100644
--- a/webui/Main.py
+++ b/webui/Main.py
@@ -293,8 +293,8 @@ if not config.app.get("hide_config", False):
##### OpenAI 配置说明
> 需要VPN开启全局流量模式
- **API Key**: [点击到官网申请](https://platform.openai.com/api-keys)
- - **Base Url**: 可以留空
- - **Model Name**: 填写**有权限**的模型,[点击查看模型列表](https://platform.openai.com/settings/organization/limits)
+ - **Base Url**: 官方 OpenAI 可留空;如果使用 OpenAI 兼容供应商(例如 OpenRouter),请填写对应的兼容接口地址
+ - **Model Name**: 填写**有权限**的模型;如果使用兼容供应商,请填写该平台支持的模型 ID
"""
if llm_provider == "moonshot":