From bbb632f5ce773c0b56334519b8676f0cb92b2ffe Mon Sep 17 00:00:00 2001 From: imbytecat Date: Mon, 26 Jan 2026 20:51:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=BB=9F=E4=B8=80=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E9=85=8D=E7=BD=AE=E5=B9=B6=E6=9B=B4=E6=96=B0=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E4=B8=8E=E5=88=86=E7=B1=BB=E6=A8=A1=E5=9E=8B=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新所有代理和分类的模型配置,统一使用新的CPA模型标识并新增未指定级别的高低优先级模型设置。 - 移除旧的 GLM 和 Claude 模型配置,替换为新的 Packy OpenAI 模型配置,并更新模型名称和版本。 --- oh-my-opencode.jsonc | 17 +++++++++-------- opencode.jsonc | 34 +++++++++------------------------- 2 files changed, 18 insertions(+), 33 deletions(-) diff --git a/oh-my-opencode.jsonc b/oh-my-opencode.jsonc index 7bcee3f..986632e 100644 --- a/oh-my-opencode.jsonc +++ b/oh-my-opencode.jsonc @@ -3,15 +3,15 @@ "agents": { "sisyphus": { // Primary orchestrator - "model": "packycode-anthropic/claude-opus-4-5-20251101" + "model": "cpa-anthropic/claude-opus-4-5-thinking" }, "prometheus": { // Strategic planning - "model": "packycode-anthropic/claude-opus-4-5-20251101" + "model": "cpa-anthropic/claude-opus-4-5-thinking" }, "atlas": { // Master orchestrator - "model": "packycode-anthropic/claude-sonnet-4-5-20250929" + "model": "cpa-anthropic/claude-opus-4-5-thinking" }, "oracle": { // Consultation, debugging @@ -32,23 +32,24 @@ }, "categories": { "visual-engineering": { - // 前端 UI/UX 设计任务 "model": "cpa-google/gemini-3-pro-high" }, "ultrabrain": { - // 深度逻辑推理、复杂架构决策 "model": "cpa-openai/gpt-5.2-codex" }, "artistry": { - // 艺术创作任务 "model": "cpa-google/gemini-3-pro-high" }, "quick": { - // 简单快速任务 "model": "cpa-google/gemini-3-flash" }, + "unspecified-low": { + "model": "cpa-anthropic/claude-sonnet-4-5" + }, + "unspecified-high": { + "model": "cpa-anthropic/claude-opus-4-5-thinking" + }, "writing": { - // 文档写作任务 "model": "cpa-google/gemini-3-flash" } } diff --git a/opencode.jsonc b/opencode.jsonc index 5cc787d..4f32827 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -6,19 +6,6 @@ "small_model": "google-gateway/gemini-3-flash", "plugin": ["oh-my-opencode"], "provider": { - "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", @@ -35,9 +22,6 @@ }, "claude-sonnet-4-5": { "name": "Claude Sonnet 4.5" - }, - "claude-haiku-4-5": { - "name": "Claude Haiku 4.5" } } }, @@ -52,8 +36,8 @@ "gemini-3-pro-high": { "name": "Gemini 3 Pro (High)" }, - "gemini-3-pro-image": { - "name": "Gemini 3 Pro (Image)" + "gemini-3-pro-low": { + "name": "Gemini 3 Pro (Low)" }, "gemini-3-flash": { "name": "Gemini 3 Flash" @@ -76,19 +60,19 @@ } } }, - "packycode-anthropic": { - "name": "PackyCode Anthropic", - "npm": "@ai-sdk/anthropic", + "packy-openai": { + "name": "Packy OpenAI", + "npm": "@ai-sdk/openai", "options": { "baseURL": "https://www.packyapi.com/v1", "apiKey": "{env:PACKY_API_KEY}" }, "models": { - "claude-opus-4-5-20251101": { - "name": "Claude Opus 4.5" + "gpt-5.2": { + "name": "GPT-5.2" }, - "claude-sonnet-4-5-20250929": { - "name": "Claude Sonnet 4.5" + "gpt-5.2-codex": { + "name": "GPT-5.2-Codex" } } }