CLAUDE_CODE_DISABLE_1M_CONTEXT が設定されていて、モデルが opus[1m] のような [1m] 接尾辞付きのエイリアスの場合に、モデルが見つからないエラーでリクエストが失敗する問題を修正した英語原文を表示
CLAUDE_CODE_DISABLE_1M_CONTEXT is set and the model is an alias with the [1m] suffix, such as opus[1m]1 に設定すると、1M コンテキストウィンドウのサポートを無効化する。Claude Code はモデルピッカーから [1m] モデルバリアントを除去し、デフォルトで 1M ウィンドウで動作するモデルを 200K ウィンドウに制限する。コンプライアンス要件のあるエンタープライズ環境で有用。認識されない [1m] モデル ID に対してウィンドウを補正する場合の役割については、ゲートウェイやカスタムモデル ID のウィンドウ補正のセクションを参照
Set to 1 to turn off 1M context window support. Claude Code removes [1m] model variants from the model picker and holds models that run with the 1M window by default to a 200K window. See Turn off 1M context. Useful for enterprise environments with compliance requirements. For its role in correcting the window for an unrecognized [1m] model ID, see Correct the window for a gateway or custom model ID
CLAUDE_CODE_DISABLE_1M_CONTEXT が設定されていて、モデルが opus[1m] のような [1m] 接尾辞付きのエイリアスの場合に、モデルが見つからないエラーでリクエストが失敗する問題を修正したCLAUDE_CODE_DISABLE_1M_CONTEXT is set and the model is an alias with the [1m] suffix, such as opus[1m][1m] サフィックスは不要になり(CLAUDE_CODE_DISABLE_1M_CONTEXT=1 で 200K に戻せます)[1m] suffix (CLAUDE_CODE_DISABLE_1M_CONTEXT=1 keeps 200K)変更後
Bedrock、Vertex、Foundry、Claude apps gateway で、Opus 4.7 以降と Fable モデルを [1m] サフィックスなしで自動的に 100 万トークンのコンテキストウィンドウで実行できるようになり、大きなコードベースでも設定の手間なく扱える。
CLAUDE_CODE_DISABLE_1M_CONTEXT を、特定の固定モデルリストだけでなくネイティブで 1M トークン窓を持つすべての Claude モデルを自動要約(auto-compaction)により 200K トークンに制限する挙動に変更し、要約によって 200K 未満に保てない場合は起動時に警告を表示するようにしました。CLAUDE_CODE_DISABLE_1M_CONTEXT to hold every Claude model with a native 1M window to 200K via auto-compaction, not just a fixed list; a startup warning now appears when auto-compaction isn't holding the session to 200K変更後
トークンの使いすぎを厳格にコントロールでき、予期せぬ料金の発生やコンテキスト超過エラーに即座に対応できます。