forked from agents/opencode
chore: 更新 provider 与代理模型映射
将部分代理模型切换到 litellm、Gemini 和 Sonnet 配置,以统一接入方式并匹配新的模型来源。
This commit is contained in:
@@ -78,14 +78,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"bailian-coding-plan": {
|
||||
"npm": "@ai-sdk/anthropic",
|
||||
"name": "Model Studio Coding Plan",
|
||||
"litellm": {
|
||||
"npm": "@ai-sdk/openai",
|
||||
"options": {
|
||||
"baseURL": "https://coding.dashscope.aliyuncs.com/apps/anthropic/v1",
|
||||
"apiKey": "{env:BAILIAN_API_KEY}"
|
||||
"baseURL": "{env:LITELLM_BASE_URL}/v1",
|
||||
"apiKey": "{env:LITELLM_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
// Grok
|
||||
"grok-code-fast-1": {
|
||||
"name": "Grok Code Fast 1",
|
||||
"reasoning": true,
|
||||
"modalities": { "input": ["text"], "output": ["text"] },
|
||||
"limit": { "context": 256000, "output": 10000 }
|
||||
},
|
||||
|
||||
// GLM
|
||||
"glm-5": {
|
||||
"name": "GLM-5",
|
||||
|
||||
Reference in New Issue
Block a user