From fb9f7a050fcb5f4c3a99becdb3bfd7837aa873d0 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Mon, 26 Jan 2026 22:52:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E6=A0=87=E8=AF=86=E7=AC=A6=E4=B8=8E=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=BB=A5=E5=8C=B9=E9=85=8D=E6=96=B0=E5=91=BD=E5=90=8D=E8=A7=84?= =?UTF-8?q?=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新模型标识符为cpa-openai和cpa-google以反映新的命名规范。 - 将 packy-openai 配置替换为 cpa-openai,更新 API 地址和密钥环境变量,并移除旧的注释配置。 --- oh-my-opencode.jsonc | 4 ++-- opencode.jsonc | 32 +++++++++++++++++++++++++++----- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/oh-my-opencode.jsonc b/oh-my-opencode.jsonc index 6aa79e8..986632e 100644 --- a/oh-my-opencode.jsonc +++ b/oh-my-opencode.jsonc @@ -15,7 +15,7 @@ }, "oracle": { // Consultation, debugging - "model": "packy-openai/gpt-5.2" + "model": "cpa-openai/gpt-5.2" }, "librarian": { // Docs, GitHub search @@ -35,7 +35,7 @@ "model": "cpa-google/gemini-3-pro-high" }, "ultrabrain": { - "model": "packy-openai/gpt-5.2-codex" + "model": "cpa-openai/gpt-5.2-codex" }, "artistry": { "model": "cpa-google/gemini-3-pro-high" diff --git a/opencode.jsonc b/opencode.jsonc index 95d217a..46d3eb2 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -44,13 +44,12 @@ } } }, - "packy-openai": { - "name": "Packy OpenAI", + "cpa-openai": { + "name": "CPA OpenAI", "npm": "@ai-sdk/openai", "options": { - "baseURL": "https://www.packyapi.com/v1", - "apiKey": "{env:PACKY_API_KEY}", - "setCacheKey": true + "baseURL": "http://10.0.1.1:8317/v1", + "apiKey": "{env:CPA_API_KEY}" }, "models": { "gpt-5.2": { @@ -67,5 +66,28 @@ } } } + // "packy-openai": { + // "name": "Packy OpenAI", + // "npm": "@ai-sdk/openai", + // "options": { + // "baseURL": "https://www.packyapi.com/v1", + // "apiKey": "{env:PACKY_API_KEY}", + // "setCacheKey": true + // }, + // "models": { + // "gpt-5.2": { + // "name": "GPT-5.2", + // "options": { + // "reasoningEffort": "xhigh" + // } + // }, + // "gpt-5.2-codex": { + // "name": "GPT-5.2-Codex", + // "options": { + // "reasoningEffort": "xhigh" + // } + // } + // } + // } } }