词元广场TOKPUB.COM - 欢迎您,支持一个 Key 调用近 600+ 海内外模型,限时特价模型低至 1 折,欢迎上岸!
把“思考深度”当成挡位:想快就浅,想稳就深。
opencode.json 后,不确定有没有生效thinking.budgetTokens。capabilities.reasoning。high / max 等变体。provider.models.[modelID].variants 下,可以覆盖默认值。{
"$schema": "https://opencode.ai/config.json",
"provider": {
"anthropic": {
"models": {
"claude-sonnet-4-5": {
"variants": {
"high": {
"thinking": { "type": "enabled", "budgetTokens": 20000 }
},
"max": {
"thinking": { "type": "enabled", "budgetTokens": 32000 }
}
}
}
}
}
}
}{
"$schema": "https://opencode.ai/config.json",
"provider": {
"google": {
"models": {
"gemini-3-flash": {
"variants": {
"high": {
"thinkingConfig": { "includeThoughts": true, "thinkingBudget": 16000 }
},
"max": {
"thinkingConfig": { "includeThoughts": true, "thinkingBudget": 24576 }
}
}
}
}
}
}
}