From 8301af3796cd1f4a665a9cc044ebd1de98e8a3a7 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 30 Jan 2026 16:55:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E5=A4=9A=E4=B8=AA=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E6=B7=BB=E5=8A=A0=E6=8E=A8=E7=90=86=E4=B8=8E=E5=A4=9A?= =?UTF-8?q?=E6=A8=A1=E6=80=81=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为多个模型添加推理能力、多模态输入支持及相应的上下文和输出限制配置。 --- opencode.jsonc | 52 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 47 insertions(+), 5 deletions(-) diff --git a/opencode.jsonc b/opencode.jsonc index df2960e..85b0d3a 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -19,13 +19,31 @@ }, "models": { "claude-opus-4-5-thinking": { - "name": "Claude Opus 4.5 (Thinking)" + "name": "Claude Opus 4.5 (Thinking)", + "reasoning": true, + "modalities": { + "input": ["text", "image", "pdf"], + "output": ["text"] + }, + "limit": { "context": 200000, "output": 64000 } }, "claude-sonnet-4-5-thinking": { - "name": "Claude Sonnet 4.5 (Thinking)" + "name": "Claude Sonnet 4.5 (Thinking)", + "reasoning": true, + "modalities": { + "input": ["text", "image", "pdf"], + "output": ["text"] + }, + "limit": { "context": 200000, "output": 64000 } }, "claude-sonnet-4-5": { - "name": "Claude Sonnet 4.5" + "name": "Claude Sonnet 4.5", + "reasoning": false, + "modalities": { + "input": ["text", "image", "pdf"], + "output": ["text"] + }, + "limit": { "context": 200000, "output": 64000 } } } }, @@ -38,10 +56,22 @@ }, "models": { "gemini-3-pro": { - "name": "Gemini 3 Pro" + "name": "Gemini 3 Pro", + "reasoning": true, + "modalities": { + "input": ["text", "image", "video", "audio", "pdf"], + "output": ["text"] + }, + "limit": { "context": 1048576, "output": 65536 } }, "gemini-3-flash": { - "name": "Gemini 3 Flash" + "name": "Gemini 3 Flash", + "reasoning": true, + "modalities": { + "input": ["text", "image", "video", "audio", "pdf"], + "output": ["text"] + }, + "limit": { "context": 1000000, "output": 64000 } } } }, @@ -56,12 +86,24 @@ "models": { "gpt-5.2": { "name": "GPT-5.2", + "reasoning": true, + "modalities": { + "input": ["text", "image"], + "output": ["text"] + }, + "limit": { "context": 400000, "output": 128000 }, "options": { "reasoningEffort": "xhigh" } }, "gpt-5.2-codex": { "name": "GPT-5.2-Codex", + "reasoning": true, + "modalities": { + "input": ["text", "image"], + "output": ["text"] + }, + "limit": { "context": 400000, "output": 128000 }, "options": { "reasoningEffort": "xhigh" }