Event ·Multi-source

Codex 开启 1M 上下文:修改 config.toml 即可

Tibo 分享了在 Codex 中为 GPT-5.6 Sol 开启 1M token 上下文窗口的方法。只需在 ~/.codex/config.toml 中设置 model_context_window 为 1000000,并将自动压缩阈值设为 900000。也可以通过命令行参数为单次会话启用。OpenAI 表示默认设置已针对性能和成本调优,但此配置可满足更长上下文需求。

Current read

Tibo 教你在 Codex 里改两行配置就能让 GPT-5.6 Sol 记住 100 万 token,嫌默认不够用可以试试。

10 sources47° AI heatLast updated 2026/8/16 20:59:46

Evidence

10 sources
Related source 4Gary Marcus
View source
Related source 5Simon Willison’s Weblog
View source
Related source 6OpenAI Blog
View source
Related source 7Lenny Rachitsky
View source
Related source 8@OpenAIDevs
View source
Related source 9arXiv: OpenAI
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.