故障排查 · effort × thinking

is not supported when thinking is disabled
xhigh / max 配关闭 thinking 会 400;2.1.251 起客户端改送 high

截至 2026-10-20,这条 400 说的是 effort 档位与 thinking 开关搭配不合法:Opus 5 与 Haiku 5.5 在 high 及以下可以关 thinking,xhigh 或 max 必须开着;Opus 5.5 与 Fable 5.1 任何档位都不能关。一步修法:打开 thinking;在允许关闭的型号上,也可以把 effort 降到 high 及以下。Claude Code 2.1.251(2026-08-28)修复了 Opus 5 在 effort 为 xhigh/max 且 thinking 关闭时失败的请求,原文是 effort … is not supported when thinking is disabled,客户端在这种组合里改为发送 effort high。

更新于 2026-10-20

#is not supported when thinking is disabled#xhigh / max#Claude Code 2.1.251#HTTP 400

四个可单独引用的点

is not supported when thinking is disabled

错误原文子串

完整句常见为 output_config.effort 'xhigh' is not supported when thinking is disabled on this model. 搜索时用这半句就能对上 changelog 与 issue。

xhigh / max

不能和 thinking disabled 叠在一起的档

2026-10-20 核对的官方口径已经按型号分开:Opus 5.5 与 Fable 5.1 在 API 上任何 effort 档位都不能关 thinking(关就是 400);Haiku 5.5 与 Opus 5 在 high 及以下可以关,xhigh 或 max 再关返回 400;Sonnet 5.5 拒绝 thinking disabled,要用 thinking: {type: "between_tools"} 关掉前置思考,而且 between_tools 在 xhigh 或 max 也会 400。

2.1.251

Claude Code 修复版本

2026-08-28 changelog:Fixed Opus 5 requests failing with that literal when effort was xhigh/max and thinking was turned off; effort is now sent as high in that case.

400

不是额度 429

这是参数组合被拒绝,不是 weekly limit,也不是 Credit balance is too low。重试同一组参数会一直 400。

effort 和 thinking 是两套旋钮

Anthropic 帮助中心写:effort 管每一步有多彻底;thinking 管要不要在可展开区域里先推理。两者可组合,但不是任意组合。2026-10-20 的官方口径按型号列得更细:Opus 5 默认可思考,API 上 high 及以下允许关掉,再往上关就会被接口拒绝;Fable 5 / Mythos 一类则根本不允许 thinking disabled。

2026-10-20 起还要多认两个型号:Opus 5.5 与 Fable 5.1 在任何 effort 档位都不能关 thinking,Sonnet 5.5 要改用 thinking: {type: "between_tools"}。

为什么客户端会自己发出这组非法参数

2026-10-20 复核:帮助中心那篇 Change the model, effort, and thinking settings 现在按型号写清了 thinking 能否关闭——Haiku 5.5、Sonnet 5.5、Opus 5.5、Fable 5.1、Opus 5 在 Claude 里不能关 thinking,其中 Opus 5.5 与 Fable 5.1 在 API 上每个 effort 档位都是 always on;Haiku 5.5 与 Opus 5 在 high 及以下可以关,xhigh 或 max 关会报错;Sonnet 5.5 要用新的 between_tools 来关前置思考。

GitHub issue 从 Opus 4.8 起就有:settings 里 alwaysThinkingEnabled: true 且 effortLevel: xhigh,请求仍偶发省略 thinking,同时带上 xhigh,于是 400。2.1.251 的修复是客户端侧降档:这种情况下改送 high。校验本身还在 API 上。

时间线

  1. 2026-07 起(issue 轨迹)

    anthropics/claude-code#76689 等记录 400 原文 output_config.effort 'xhigh' is not supported when thinking is disabled on this model.

  2. 文档现行口径(2026-10-20 抓取)

    官方文档 2026-10-20 抓取:Opus 5 在 high 及以下可关 thinking,xhigh/max 再关则 400;Fable 5 / Mythos 5 拒绝 thinking disabled;Opus 5.5 与 Fable 5.1 在任何档位都不能关 thinking;Haiku 5.5 在 high 及以下可关;Sonnet 5.5 要改用 thinking: {type: "between_tools"}。

  3. 2026-08-28 · 2.1.251

    Claude Code changelog 把上述失败定为 bug 并修复:该组合改为发送 effort high。同版本还加了 PreModelSwitch。升级客户端不等于 API 开始接受 xhigh+disabled。

已确认 vs 误解

已确认

原文子串、400、xhigh/max 与 thinking disabled 互斥、2.1.251 客户端改送 high、Opus 5 在 high 及以下可关 thinking——分别来自 changelog 与 platform 文档(2026-10-20 复核)。另外 2026-10-20 又核到两条:帮助中心按型号列的互斥规则,以及 Claude Code 当前版本 2.1.304。

常见误解

「这是额度用完」——状态是 400,文案谈 effort/thinking。「升级 2.1.251 就能在关 thinking 时用 max」——修复是降到 high,不是放开互斥。「改请求头就能过」——参数组合由服务端校验,官方文档给出的是合法的 effort 与 thinking 组合。2026-10-20 再核一次官方文档:互斥规则按型号写,别把 Opus 5 那句「high 及以下可关」套到所有 id 上。

关 thinking 还是保 effort

必须关 thinking:把 effort 降到 high 及以下

文档允许的组合是 thinking disabled + high/medium/low。2.1.251 的 Claude Code 在你选了 xhigh/max 却关掉 thinking 时,会自己改送 high。API 直连则要自己改 output_config.effort。2026-10-20 的官方口径提醒:Sonnet 5.5 不能用 disabled,要改成 thinking: {type: "between_tools"}。

必须保 xhigh / max:打开 thinking

xhigh/max 需要 thinking 开着(Opus 5 及更新、带这条限制的型号)。Fable 5 一类本来就不能关 thinking,这条 400 在那些型号上按文档不该出现。2026-10-20 的官方口径里,Haiku 5.5 与 Opus 5 一样只在 high 及以下可关;Opus 5.5 与 Fable 5.1 任何档位都不能关;Sonnet 5.5 拒绝 disabled,要改用 thinking: {type: "between_tools"}。

处理步骤(官方组合,不换平台)

先看原文是否含 is not supported when thinking is disabled。再看 effort 是不是 xhigh/max、thinking 是否 disabled。二选一:降 effort,或打开 thinking。Claude Code 请升到 2.1.251 或更新(2026-10-20 的当前版本是 2.1.304),让客户端不要再发非法组合。合法组合按型号查官方 thinking 文档。

这条 400 跟 QCode 余额无关

这条 400 是模型接口对参数组合的拒绝。QCode 按 token 计费,各模型单价见 /models,转发的是同一套 Messages API:非法的 effort/thinking 组合不会因为经过中转就变合法。Opus 5 在用量表里有真实调用;要修的是请求体。

常见问题

完整错误原文长什么样?

常见是 API Error: 400 output_config.effort 'xhigh' is not supported when thinking is disabled on this model. Use effort 'high' or below, or enable thinking. 判别用子串 is not supported when thinking is disabled。

2.1.251 之后还用升级吗?

要。旧客户端仍可能发出 xhigh + thinking off。升级后客户端改送 high;若你直连 API,仍要自己避开互斥组合。

Sonnet 5 也会这样吗?

官方文档按型号列能否关 thinking。2026-10-20 核到的口径是:Opus 5 与 Haiku 5.5 在 high 及以下可以关,之上会返回 400;Opus 5.5 与 Fable 5.1 任何档位都不能关;Sonnet 5.5 拒绝 disabled,要用 thinking: {type: "between_tools"};其余型号看 thinking 文档的表,不要把某一个型号的句子抄到所有 id。

alwaysThinkingEnabled: true 为什么还会中招?

issue 描述客户端有时省略 thinking 块却仍带 xhigh。这是客户端 bug 轨迹,2.1.251 用降档修补。不要假设设置项等于每个请求都带了 thinking。

这和月封顶 / credits 有关吗?

无关。那两条是 429 无 retry-after 或预付积分为 0。这条是 400 参数拒绝。

QCode 会不会自动把 xhigh 改成 high?

Claude Code 2.1.251 的改写发生在官方客户端:它在 xhigh/max + thinking off 时改送 high。Anthropic 文档给出的是合法组合,这个改写是客户端行为,不是转售层的承诺。

信息来源

Claude Code changelog 2.1.251(2026-08-28)修复句与原文,以及当前版本 2.1.304(2026-10-20 抓取)。thinking 文档 https://docs.claude.com/en/docs/build-with-claude/thinking.md 与 platform.claude.com 的 effort / thinking 说明(2026-10-20 核对)。错误原文样本见 anthropics/claude-code#76689。帮助中心讲改模型、effort 与 thinking 设置那篇(support.claude.com/en/articles/8664678-change-the-model-effort-and-thinking-settings,2026-10-20 核对,按型号列 thinking 可否与 between_tools)。

先改参数组合,不是先换密钥

400 来自 xhigh/max + thinking disabled。升到 Claude Code 2.1.251(当前 2.1.304),或按官方文档降 effort / 打开 thinking。QCode 按 token 计费,各模型单价见 /models。

不确定从哪开始?

先试一周

小包 ¥26($30 额度,7 天)

每天都用

体验版 ¥63/月,每天 $5 额度;每 $1 额度只要 ¥0.42,中包约 ¥0.79