From 52317b439f30549168a72992f8d002228b256f15 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 30 Jan 2026 15:05:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=20Claude=20=E5=92=8C=20Gemini?= =?UTF-8?q?=20=E6=A8=A1=E5=9E=8B=E6=96=B0=E5=A2=9E=E5=A4=9A=E6=A8=A1?= =?UTF-8?q?=E6=80=81=E6=94=AF=E6=8C=81=E4=B8=8E=E9=85=8D=E7=BD=AE=E9=80=89?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为 Claude 和 Gemini 模型新增上下文与输出限制、多模态输入输出支持及不同思考级别配置。 --- opencode.jsonc | 46 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/opencode.jsonc b/opencode.jsonc index bef0944..b969dbf 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -19,10 +19,28 @@ }, "models": { "claude-opus-4-5-thinking": { - "name": "Claude Opus 4.5 (Thinking)" + "name": "Claude Opus 4.5 (Thinking)", + "limit": { "context": 200000, "output": 64000 }, + "modalities": { + "input": ["text", "image", "pdf"], + "output": ["text"] + }, + "variants": { + "low": { "thinkingConfig": { "thinkingBudget": 8192 } }, + "max": { "thinkingConfig": { "thinkingBudget": 32768 } } + } }, "claude-sonnet-4-5-thinking": { - "name": "Claude Sonnet 4.5 (Thinking)" + "name": "Claude Sonnet 4.5 (Thinking)", + "limit": { "context": 200000, "output": 64000 }, + "modalities": { + "input": ["text", "image", "pdf"], + "output": ["text"] + }, + "variants": { + "low": { "thinkingConfig": { "thinkingBudget": 8192 } }, + "max": { "thinkingConfig": { "thinkingBudget": 32768 } } + } }, "claude-sonnet-4-5": { "name": "Claude Sonnet 4.5" @@ -38,10 +56,30 @@ }, "models": { "gemini-3-pro-high": { - "name": "Gemini 3 Pro (High)" + "name": "Gemini 3 Pro (High)", + "limit": { "context": 1048576, "output": 65536 }, + "modalities": { + "input": ["text", "image", "pdf"], + "output": ["text"] + }, + "variants": { + "low": { "thinkingLevel": "low" }, + "high": { "thinkingLevel": "high" } + } }, "gemini-3-flash": { - "name": "Gemini 3 Flash" + "name": "Gemini 3 Flash", + "limit": { "context": 1048576, "output": 65536 }, + "modalities": { + "input": ["text", "image", "pdf"], + "output": ["text"] + }, + "variants": { + "minimal": { "thinkingLevel": "minimal" }, + "low": { "thinkingLevel": "low" }, + "medium": { "thinkingLevel": "medium" }, + "high": { "thinkingLevel": "high" } + } } } },