Commit f96a2a18 authored by cagedbird043's avatar cagedbird043
Browse files

feat(opencode): 更新 opencode.json 模板至 Claude 4.6(默认启用 thinking)

parent f955b04a
...@@ -883,25 +883,38 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin ...@@ -883,25 +883,38 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin
} }
} }
const claudeModels = { const claudeModels = {
'claude-opus-4-5-thinking': { 'claude-opus-4-6-thinking': {
name: 'Claude Opus 4.5 Thinking', name: 'Claude 4.6 Opus (Thinking)',
limit: { limit: {
context: 200000, context: 200000,
output: 64000 output: 128000
} },
}, modalities: {
'claude-sonnet-4-5-thinking': { input: ['text', 'image', 'pdf'],
name: 'Claude Sonnet 4.5 Thinking', output: ['text']
limit: { },
context: 200000, options: {
output: 64000 thinking: {
budgetTokens: 24576,
type: 'enabled'
}
} }
}, },
'claude-sonnet-4-5': { 'claude-sonnet-4-6': {
name: 'Claude Sonnet 4.5', name: 'Claude 4.6 Sonnet',
limit: { limit: {
context: 200000, context: 200000,
output: 64000 output: 64000
},
modalities: {
input: ['text', 'image', 'pdf'],
output: ['text']
},
options: {
thinking: {
budgetTokens: 24576,
type: 'enabled'
}
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment