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

This commit is contained in:
cagedbird043
2026-02-26 14:27:51 +08:00
parent f955b04a6f
commit f96a2a18c1

View File

@@ -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'
}
}
}
}