CLAUDE_CODE_DISABLE_THINKING
1 を設定すると、API リクエストから thinking パラメータが完全に省略される。これは、そのパラメータを拒否するプロキシやゲートウェイ向けの互換性オプションである。デフォルトで思考するモデルでは、パラメータを省略してもモデルは思考を続ける場合がある。Anthropic API で拡張思考を明示的に無効化するには、代わりに MAX_THINKING_TOKENS=0 を使うこと。どちらの変数も、思考をオフにできない Opus 5.5、Sonnet 5.5、Haiku 5.5、Fable モデルでは思考をオフにしない。サードパーティプロバイダでは、MAX_THINKING_TOKENS=0 も同様にパラメータを省略するため、2 つの変数はそこでは同じ挙動になる。
Set to 1 to omit the thinking parameter from API requests entirely. This is a compatibility option for proxies and gateways that reject the parameter. On models that think by default, omitting the parameter means the model may still think. To explicitly disable extended thinking on the Anthropic API, use MAX_THINKING_TOKENS=0 instead. Neither variable turns thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which can't have thinking turned off. On third-party providers, MAX_THINKING_TOKENS=0 likewise omits the parameter, so the two variables behave the same there
まだ変更履歴との関連付けはありません