一龍馬/AI 情報站讀懂消息背後的脈絡
星期一
搜尋

Tibo @thsottiaux 提供了啟用 1M-token context window 在 Codex 中的教程,包括修改設定檔和使用命令列參數

中文摘要

Tibo @thsottiaux 提供了啟用 1M-token context window 在 Codex 中的教程,包括修改設定檔和使用命令列參數。

一龍馬判讀

這對於需要更大 context window 的使用者來說是有用的,尤其是那些需要處理大量程式碼和對話歷史的使用者。

原文節錄

Tibo · @thsottiaux

Here is how to enable a 1M-token context window in Codex for GPT-5.6 Sol. Even though we have tuned the context limit in Codex to…

取得全文 · 不代表內容已獨立查證

查看原文
完整收錄文字與來源

Here is how to enable a 1M-token context window in Codex for GPT-5.6 Sol. Even though we have tuned the context limit in Codex to be set optimally when it comes to performance and cost, this is a common ask, so here it is documented. A larger context window lets Codex retain more code, tool output, and conversation history before summarizing older material. You need a model that supports it. And GPT-5.6 Sol, for example, has a documented 1,050,000-token window. Open ~/.codex/config.toml and add or update these settings at the top level, before any [section] headers: ``` model = "gpt-5.6-sol" model_context_window = 1000000 model_auto_compact_token_limit = 900000 ``` The first setting selects the model. The second tells Codex to use a one-million-token context budget. The third starts automatic history compaction around 900,000 tokens, leaving some headroom. Restart Codex client and start a new session after saving. To try the configuration for a single CLI session without changing your defaults: ``` codex -m gpt-5.6-sol \ -c model_context_window=1000000 \ -c model_auto_compact_token_limit=900000 ``` Have fun, but also know that we tuned the default carefully!

收錄日期
2026-08-17
來源
Nitter RSS(公開貼文)
抓取時間
2026/08/17 06:13(台北)