Commit c8e5455d authored by yangjianbo's avatar yangjianbo
Browse files

chore(配置): 更新上游白名单默认值

新增 Kimi/BigModel/Minimax 官方域名到 allowlist
保持示例配置与默认值一致
parent f8e7255c
...@@ -413,6 +413,9 @@ func setDefaults() { ...@@ -413,6 +413,9 @@ func setDefaults() {
viper.SetDefault("security.url_allowlist.upstream_hosts", []string{ viper.SetDefault("security.url_allowlist.upstream_hosts", []string{
"api.openai.com", "api.openai.com",
"api.anthropic.com", "api.anthropic.com",
"api.kimi.com",
"open.bigmodel.cn",
"api.minimaxi.com",
"generativelanguage.googleapis.com", "generativelanguage.googleapis.com",
"cloudcode-pa.googleapis.com", "cloudcode-pa.googleapis.com",
"*.openai.azure.com", "*.openai.azure.com",
......
...@@ -41,6 +41,9 @@ security: ...@@ -41,6 +41,9 @@ security:
upstream_hosts: upstream_hosts:
- "api.openai.com" - "api.openai.com"
- "api.anthropic.com" - "api.anthropic.com"
- "api.kimi.com"
- "open.bigmodel.cn"
- "api.minimaxi.com"
- "generativelanguage.googleapis.com" - "generativelanguage.googleapis.com"
- "cloudcode-pa.googleapis.com" - "cloudcode-pa.googleapis.com"
- "*.openai.azure.com" - "*.openai.azure.com"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment