forked from imbytecat/opencode-config
refactor: 统一模型引用前缀为 cpa- 并更新API配置
- 更新所有模型引用前缀为 cpa-,统一使用新的代理服务命名规范。 - 添加GLM Coding Plan和CPA系列API网关配置,移除重复的GLM配置并更新PackyCode为CPA Anthropic配置。
This commit is contained in:
@@ -6,8 +6,21 @@
|
||||
"small_model": "google-gateway/gemini-3-flash",
|
||||
"plugin": ["oh-my-opencode"],
|
||||
"provider": {
|
||||
"anthropic-gateway": {
|
||||
"name": "Anthropic Gateway",
|
||||
"glm-coding-plan": {
|
||||
"name": "GLM Coding Plan",
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"options": {
|
||||
"baseURL": "https://api.z.ai/api/coding/paas/v4",
|
||||
"apiKey": "{env:ZAI_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
"glm-4.7": {
|
||||
"name": "GLM-4.7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cpa-anthropic": {
|
||||
"name": "CPA Anthropic",
|
||||
"npm": "@ai-sdk/anthropic",
|
||||
"options": {
|
||||
"baseURL": "http://10.0.1.1:8317/v1",
|
||||
@@ -28,8 +41,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"google-gateway": {
|
||||
"name": "Google Gateway",
|
||||
"cpa-google": {
|
||||
"name": "CPA Google",
|
||||
"npm": "@ai-sdk/google",
|
||||
"options": {
|
||||
"baseURL": "http://10.0.1.1:8317/v1beta",
|
||||
@@ -47,8 +60,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"openai-gateway": {
|
||||
"name": "OpenAI Gateway",
|
||||
"cpa-openai": {
|
||||
"name": "CPA OpenAI",
|
||||
"npm": "@ai-sdk/openai",
|
||||
"options": {
|
||||
"baseURL": "http://10.0.1.1:8317/v1",
|
||||
@@ -63,21 +76,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"glm-coding-plan": {
|
||||
"name": "GLM Coding Plan",
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"options": {
|
||||
"baseURL": "https://api.z.ai/api/coding/paas/v4",
|
||||
"apiKey": "{env:ZAI_API_KEY}"
|
||||
},
|
||||
"models": {
|
||||
"glm-4.7": {
|
||||
"name": "GLM-4.7"
|
||||
}
|
||||
}
|
||||
},
|
||||
"packycode": {
|
||||
"name": "PackyCode",
|
||||
"packycode-anthropic": {
|
||||
"name": "PackyCode Anthropic",
|
||||
"npm": "@ai-sdk/anthropic",
|
||||
"options": {
|
||||
"baseURL": "https://www.packyapi.com/v1",
|
||||
|
||||
Reference in New Issue
Block a user