词元之母TOK.MOM - 平台充值汇率 1:1 即 1 人民币充值到账 1 美元,支持一个 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 }
}
}
}
}
}
}
}(无) → high → max → (无) → high → ...high)。variants 里使用自定义 key:{
"provider": {
"anthropic": {
"models": {
"claude-sonnet-4-5": {
"variants": {
"极速": { "thinking": { "type": "enabled", "budgetTokens": 8000 } },
"深度": { "thinking": { "type": "enabled", "budgetTokens": 32000 } }
}
}
}
}
}
}opencode.json 里写的变体合并