chore(配置): 更新上游白名单默认值
新增 Kimi/BigModel/Minimax 官方域名到 allowlist 保持示例配置与默认值一致
This commit is contained in:
@@ -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:
|
|||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user