refactor: 统一模型引用前缀为 cpa- 并更新API配置

- 更新所有模型引用前缀为 cpa-,统一使用新的代理服务命名规范。
- 添加GLM Coding Plan和CPA系列API网关配置,移除重复的GLM配置并更新PackyCode为CPA Anthropic配置。
This commit is contained in:
2026-01-26 16:20:37 +08:00
parent 91d94a9b6e
commit c26370c1a5
2 changed files with 33 additions and 38 deletions

View File

@@ -3,58 +3,53 @@
"agents": { "agents": {
"sisyphus": { "sisyphus": {
// Primary orchestrator // Primary orchestrator
// "model": "anthropic-gateway/claude-sonnet-4-5" "model": "packycode-anthropic/claude-opus-4-5-20251101"
"model": "packycode/claude-opus-4-5-20251101"
}, },
"prometheus": { "prometheus": {
// Strategic planning // Strategic planning
// "model": "anthropic-gateway/claude-sonnet-4-5" "model": "packycode-anthropic/claude-opus-4-5-20251101"
"model": "packycode/claude-opus-4-5-20251101"
}, },
"atlas": { "atlas": {
// Master orchestrator // Master orchestrator
// "model": "anthropic-gateway/claude-sonnet-4-5" "model": "packycode-anthropic/claude-sonnet-4-5-20250929"
"model": "packycode/claude-sonnet-4-5-20250929"
}, },
"oracle": { "oracle": {
// Consultation, debugging // Consultation, debugging
"model": "openai-gateway/gpt-5.2" "model": "cpa-openai/gpt-5.2"
}, },
"librarian": { "librarian": {
// Docs, GitHub search // Docs, GitHub search
// "model": "glm-coding-plan/glm-4.7" "model": "cpa-google/gemini-3-flash"
"model": "google-gateway/gemini-3-flash"
}, },
"explore": { "explore": {
// Fast codebase grep // Fast codebase grep
// "model": "opencode/gpt-5-nano" "model": "cpa-google/gemini-3-flash"
"model": "google-gateway/gemini-3-flash"
}, },
"multimodal-looker": { "multimodal-looker": {
// PDF/image analysis // PDF/image analysis
"model": "google-gateway/gemini-3-flash" "model": "cpa-google/gemini-3-flash"
} }
}, },
"categories": { "categories": {
"visual-engineering": { "visual-engineering": {
// 前端 UI/UX 设计任务 // 前端 UI/UX 设计任务
"model": "google-gateway/gemini-3-pro-high" "model": "cpa-google/gemini-3-pro-high"
}, },
"ultrabrain": { "ultrabrain": {
// 深度逻辑推理、复杂架构决策 // 深度逻辑推理、复杂架构决策
"model": "openai-gateway/gpt-5.2-codex" "model": "cpa-openai/gpt-5.2-codex"
}, },
"artistry": { "artistry": {
// 艺术创作任务 // 艺术创作任务
"model": "google-gateway/gemini-3-pro-high" "model": "cpa-google/gemini-3-pro-high"
}, },
"quick": { "quick": {
// 简单快速任务 // 简单快速任务
"model": "google-gateway/gemini-3-flash" "model": "cpa-google/gemini-3-flash"
}, },
"writing": { "writing": {
// 文档写作任务 // 文档写作任务
"model": "google-gateway/gemini-3-flash" "model": "cpa-google/gemini-3-flash"
} }
} }
} }

View File

@@ -6,8 +6,21 @@
"small_model": "google-gateway/gemini-3-flash", "small_model": "google-gateway/gemini-3-flash",
"plugin": ["oh-my-opencode"], "plugin": ["oh-my-opencode"],
"provider": { "provider": {
"anthropic-gateway": { "glm-coding-plan": {
"name": "Anthropic Gateway", "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", "npm": "@ai-sdk/anthropic",
"options": { "options": {
"baseURL": "http://10.0.1.1:8317/v1", "baseURL": "http://10.0.1.1:8317/v1",
@@ -28,8 +41,8 @@
} }
} }
}, },
"google-gateway": { "cpa-google": {
"name": "Google Gateway", "name": "CPA Google",
"npm": "@ai-sdk/google", "npm": "@ai-sdk/google",
"options": { "options": {
"baseURL": "http://10.0.1.1:8317/v1beta", "baseURL": "http://10.0.1.1:8317/v1beta",
@@ -47,8 +60,8 @@
} }
} }
}, },
"openai-gateway": { "cpa-openai": {
"name": "OpenAI Gateway", "name": "CPA OpenAI",
"npm": "@ai-sdk/openai", "npm": "@ai-sdk/openai",
"options": { "options": {
"baseURL": "http://10.0.1.1:8317/v1", "baseURL": "http://10.0.1.1:8317/v1",
@@ -63,21 +76,8 @@
} }
} }
}, },
"glm-coding-plan": { "packycode-anthropic": {
"name": "GLM Coding Plan", "name": "PackyCode Anthropic",
"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",
"npm": "@ai-sdk/anthropic", "npm": "@ai-sdk/anthropic",
"options": { "options": {
"baseURL": "https://www.packyapi.com/v1", "baseURL": "https://www.packyapi.com/v1",