From f96a2a18c18f1474dd8a60daa2972126d2ba778e Mon Sep 17 00:00:00 2001 From: cagedbird043 Date: Thu, 26 Feb 2026 14:27:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(opencode):=20=E6=9B=B4=E6=96=B0=20opencode?= =?UTF-8?q?.json=20=E6=A8=A1=E6=9D=BF=E8=87=B3=20Claude=204.6=EF=BC=88?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=90=AF=E7=94=A8=20thinking=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/keys/UseKeyModal.vue | 37 +++++++++++++------- 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/keys/UseKeyModal.vue b/frontend/src/components/keys/UseKeyModal.vue index 43edafb3..8b07e2ce 100644 --- a/frontend/src/components/keys/UseKeyModal.vue +++ b/frontend/src/components/keys/UseKeyModal.vue @@ -883,25 +883,38 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin } } const claudeModels = { - 'claude-opus-4-5-thinking': { - name: 'Claude Opus 4.5 Thinking', + 'claude-opus-4-6-thinking': { + name: 'Claude 4.6 Opus (Thinking)', limit: { context: 200000, - output: 64000 + output: 128000 + }, + modalities: { + input: ['text', 'image', 'pdf'], + output: ['text'] + }, + options: { + thinking: { + budgetTokens: 24576, + type: 'enabled' + } } }, - 'claude-sonnet-4-5-thinking': { - name: 'Claude Sonnet 4.5 Thinking', - limit: { - context: 200000, - output: 64000 - } - }, - 'claude-sonnet-4-5': { - name: 'Claude Sonnet 4.5', + 'claude-sonnet-4-6': { + name: 'Claude 4.6 Sonnet', limit: { context: 200000, output: 64000 + }, + modalities: { + input: ['text', 'image', 'pdf'], + output: ['text'] + }, + options: { + thinking: { + budgetTokens: 24576, + type: 'enabled' + } } } }