CodexでGPT-5.6 Solの100万トークンのコンテキストウィンドウを有効にする方法
-
<p>CodexでGPT-5.6 Solの100万トークンのコンテキストウィンドウを有効にする方法を紹介します。 </p><p>Codexではパフォーマンスとコストの観点からコンテキスト上限を最適になるよう調整していますが、よく寄せられる要望のため、ここに手順を記載します。</p><p>コンテキストウィンドウを大きくすると、Codexは古い内容を要約する前に、より多くのコード、ツール出力、会話履歴を保持できます。これを利用するには、対応するモデルが必要です。たとえばGPT-5.6 Solには、1,050,000トークンのコンテキストウィンドウが文書化されています。 </p><p>~/.codex/config.toml を開き、すべての</p><p></p><p>[section] ヘッダーより前のトップレベルに、次の設定を追加または更新してください。</p><p>
</p><p>model = "gpt-5.6-sol"</p><p>model_context_window = 1000000</p><p>model_auto_compact_token_limit = 900000</p><p></p><p></p><p>1つ目の設定でモデルを選択します。2つ目は、100万トークンのコンテキスト予算を使用するようCodexに指定します。3つ目は、およそ900,000トークンで履歴の自動圧縮を開始し、余裕を確保します。保存後、Codexクライアントを再起動し、新しいセッションを開始してください。 </p><p>デフォルト設定を変更せず、CLIの1セッションだけでこの構成を試すには、次を実行します。</p><p></p><p></p><p>codex -m gpt-5.6-sol \</p><p> -c model_context_window=1000000 \</p><p> -c model_auto_compact_token_limit=900000</p><p></p><p></p><p>ぜひ試してみてください。ただし、デフォルト値も慎重に調整されています。</p><p></p><p>Tiboより: <a target="_blank" rel="noopener noreferrer nofollow" href="https://x.com/thsottiaux/status/2089082893804896524">https://x.com/thsottiaux/status/2089082893804896524</a></p><p></p>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login