feat: 添加 OpenAI 和 Google 网关支持,移除旧配置
- 添加 OpenAI 网关支持并配置 GPT-5.2 及 GPT-5.2-Codex 模型,同时新增 Google 网关以支持 Gemini 3 Pro 高性能模型。 - 删除旧的代码片段提供者配置文件中定义的CLI代理API和Z.AI模型配置。
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
"websearch": "deny" // 禁用内置的 websearch 工具
|
||||
},
|
||||
"provider": {
|
||||
"gateway": {
|
||||
"name": "Gateway",
|
||||
"anthropic-gateway": {
|
||||
"name": "Anthropic Gateway",
|
||||
"npm": "@ai-sdk/anthropic",
|
||||
"options": {
|
||||
"baseURL": "http://10.0.1.1:8317/v1",
|
||||
@@ -45,7 +45,17 @@
|
||||
},
|
||||
"claude-haiku-4-5": {
|
||||
"name": "Claude Haiku 4.5"
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
"google-gateway": {
|
||||
"name": "Google Gateway",
|
||||
"npm": "@ai-sdk/google",
|
||||
"options": {
|
||||
"baseURL": "http://10.0.1.1:8317/v1",
|
||||
"apiKey": "{env:CPA_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
"gemini-3-pro-high": {
|
||||
"name": "Gemini 3 Pro (High)"
|
||||
},
|
||||
@@ -63,6 +73,22 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"openai-gateway": {
|
||||
"name": "OpenAI Gateway",
|
||||
"npm": "@ai-sdk/openai",
|
||||
"options": {
|
||||
"baseURL": "http://10.0.1.1:8317/v1",
|
||||
"apiKey": "{env:CPA_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
"gpt-5.2": {
|
||||
"name": "GPT-5.2"
|
||||
},
|
||||
"gpt-5.2-codex": {
|
||||
"name": "GPT-5.2-Codex"
|
||||
}
|
||||
}
|
||||
},
|
||||
"GLM Coding": {
|
||||
"name": "Z.AI",
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
|
||||
Reference in New Issue
Block a user