推理优先方案
这个页面解决:需要强逻辑推理(数学、代码、复杂分析)时怎么配模型。
推荐配置
json5
{
agents: {
defaults: {
model: {
primary: "anthropic/claude-opus-4-6",
fallbacks: ["openai/gpt-5.4"]
},
models: {
"anthropic/claude-opus-4-6": {
alias: "Opus",
params: { thinking: "adaptive" }
}
}
}
}
}Thinking 模式
Claude 4.6 支持三种 thinking 模式:
| 模式 | 配置值 | 行为 |
|---|---|---|
| 关闭 | "off" | 不使用 extended thinking |
| 自适应 | "adaptive" (默认) | 根据问题复杂度自动决定 |
| 流式 | "stream" | 始终启用,实时显示思考过程 |
在对话中切换:
/think:stream # 开启流式推理
/think:off # 关闭模型推理能力对比
| 模型 | 数学 | 代码 | 长链推理 | 成本 |
|---|---|---|---|---|
| Claude Opus 4-6 | ⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐ | $$$ |
| GPT-5.4 | ⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐ | $$ |
| Qwen 3.5 Plus | ⭐⭐ | ⭐⭐ | ⭐⭐ | $ |