feat(opencode): 更新 opencode.json 模板至 Claude 4.6(默认启用 thinking)
This commit is contained in:
@@ -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: {
|
||||||
|
input: ['text', 'image', 'pdf'],
|
||||||
|
output: ['text']
|
||||||
|
},
|
||||||
|
options: {
|
||||||
|
thinking: {
|
||||||
|
budgetTokens: 24576,
|
||||||
|
type: 'enabled'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'claude-sonnet-4-5-thinking': {
|
'claude-sonnet-4-6': {
|
||||||
name: 'Claude Sonnet 4.5 Thinking',
|
name: 'Claude 4.6 Sonnet',
|
||||||
limit: {
|
limit: {
|
||||||
context: 200000,
|
context: 200000,
|
||||||
output: 64000
|
output: 64000
|
||||||
}
|
|
||||||
},
|
},
|
||||||
'claude-sonnet-4-5': {
|
modalities: {
|
||||||
name: 'Claude Sonnet 4.5',
|
input: ['text', 'image', 'pdf'],
|
||||||
limit: {
|
output: ['text']
|
||||||
context: 200000,
|
},
|
||||||
output: 64000
|
options: {
|
||||||
|
thinking: {
|
||||||
|
budgetTokens: 24576,
|
||||||
|
type: 'enabled'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user