refactor: 统一模型引用前缀为 cpa- 并更新API配置
- 更新所有模型引用前缀为 cpa-,统一使用新的代理服务命名规范。 - 添加GLM Coding Plan和CPA系列API网关配置,移除重复的GLM配置并更新PackyCode为CPA Anthropic配置。
This commit is contained in:
@@ -3,58 +3,53 @@
|
||||
"agents": {
|
||||
"sisyphus": {
|
||||
// Primary orchestrator
|
||||
// "model": "anthropic-gateway/claude-sonnet-4-5"
|
||||
"model": "packycode/claude-opus-4-5-20251101"
|
||||
"model": "packycode-anthropic/claude-opus-4-5-20251101"
|
||||
},
|
||||
"prometheus": {
|
||||
// Strategic planning
|
||||
// "model": "anthropic-gateway/claude-sonnet-4-5"
|
||||
"model": "packycode/claude-opus-4-5-20251101"
|
||||
"model": "packycode-anthropic/claude-opus-4-5-20251101"
|
||||
},
|
||||
"atlas": {
|
||||
// Master orchestrator
|
||||
// "model": "anthropic-gateway/claude-sonnet-4-5"
|
||||
"model": "packycode/claude-sonnet-4-5-20250929"
|
||||
"model": "packycode-anthropic/claude-sonnet-4-5-20250929"
|
||||
},
|
||||
"oracle": {
|
||||
// Consultation, debugging
|
||||
"model": "openai-gateway/gpt-5.2"
|
||||
"model": "cpa-openai/gpt-5.2"
|
||||
},
|
||||
"librarian": {
|
||||
// Docs, GitHub search
|
||||
// "model": "glm-coding-plan/glm-4.7"
|
||||
"model": "google-gateway/gemini-3-flash"
|
||||
"model": "cpa-google/gemini-3-flash"
|
||||
},
|
||||
"explore": {
|
||||
// Fast codebase grep
|
||||
// "model": "opencode/gpt-5-nano"
|
||||
"model": "google-gateway/gemini-3-flash"
|
||||
"model": "cpa-google/gemini-3-flash"
|
||||
},
|
||||
"multimodal-looker": {
|
||||
// PDF/image analysis
|
||||
"model": "google-gateway/gemini-3-flash"
|
||||
"model": "cpa-google/gemini-3-flash"
|
||||
}
|
||||
},
|
||||
"categories": {
|
||||
"visual-engineering": {
|
||||
// 前端 UI/UX 设计任务
|
||||
"model": "google-gateway/gemini-3-pro-high"
|
||||
"model": "cpa-google/gemini-3-pro-high"
|
||||
},
|
||||
"ultrabrain": {
|
||||
// 深度逻辑推理、复杂架构决策
|
||||
"model": "openai-gateway/gpt-5.2-codex"
|
||||
"model": "cpa-openai/gpt-5.2-codex"
|
||||
},
|
||||
"artistry": {
|
||||
// 艺术创作任务
|
||||
"model": "google-gateway/gemini-3-pro-high"
|
||||
"model": "cpa-google/gemini-3-pro-high"
|
||||
},
|
||||
"quick": {
|
||||
// 简单快速任务
|
||||
"model": "google-gateway/gemini-3-flash"
|
||||
"model": "cpa-google/gemini-3-flash"
|
||||
},
|
||||
"writing": {
|
||||
// 文档写作任务
|
||||
"model": "google-gateway/gemini-3-flash"
|
||||
"model": "cpa-google/gemini-3-flash"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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