Объявление
先看证据,再决定买不买

频道每天最多 3 条价格异动与中转状态;具体商品请用机器人设置降价/补货提醒。交流群提问请带预算、模型、工具和使用频率。

Открыть
Сообщество и контактыTelegram 群点击加入Telegram 频道每天最多 3 条有效价格情报联系我们tgAIPricedb交流群979789483
К списку новостей
Продукты

Как включить контекст на 1 млн токенов для GPT-5.6 Sol в Codex

Пользователи Codex могут задать для GPT-5.6 Sol контекст размером в один миллион токенов и включить автоматическое сжатие истории на отметке 900 000 токенов.

78% VERIFIED

Согласно опубликованной инструкции, нужно открыть файл ~/.codex/config.toml и добавить или изменить на верхнем уровне три параметра: model = "gpt-5.6-sol", model_context_window = 1000000 и model_auto_compact_token_limit = 900000. Первый параметр выбирает модель, второй задаёт размер контекста, а третий запускает сжатие истории до достижения предельного значения. После сохранения файла необходимо перезапустить Codex и начать новый сеанс.

Для разового запуска конфигурацию можно передать через параметры командной строки, не меняя постоянные настройки. Увеличенный контекст позволяет дольше сохранять в рабочей памяти код, результаты инструментов и историю диалога до их свёртывания.

При этом миллион токенов не является стандартным значением. Авторы инструкции отмечают, что лимит по умолчанию настроен с учётом производительности и стоимости, поэтому расширение окна может увеличить расход ресурсов или повлиять на доступные квоты. Подтверждения пока в основном исходят из постов в соцсетях, обсуждений сообщества и публикаций сторонних сайтов, а не из напрямую проверяемой официальной документации.

Источники

1 Million Context to enable professional workloads - Codexcommunity.openai.com · supporting

Restart the 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` `codex -m gpt-5.6-sol` `-c model_context_window=1000000` `-c model_auto_compact_token_limit=900000` Have fun, but keep in mind that the default context limit has been tuned carefully for performance and cost. [...] great ^^ - we are half way there: “would be great!” is the real thing and matching your competitor at the same price point is what is needed. The current state is (when you compare your choices) → you buy the Pro Plan of Claude since OPUS does a similar JOB with 1M context and GPT SOL (might be better in some tasks sure) is simply crippled. This has just been shared tonight by Tibo on Twitter Here is how to enable a 1M-token context window in Codex for GPT-5.6 Sol. Codex is tuned to use a context limit that balances per

Enable 1M-Token Context Window in Codex CLI (GPT-5.6 Sol) | explainx.ai Blog | explainx.aiexplainx.ai · supporting

A 1M-token window is a common user request — Tibo's post exists because enough people were asking for it that OpenAI decided to document the override rather than field the same question repeatedly. But "common request" and "correct default for most sessions" are different things, and the closing line makes clear which one OpenAI is optimizing the default for. ## The exact config: persistent default To make the 1M window Codex's default going forward, edit the Codex config file directly. Step 1. Open `~/.codex/config.toml`. `~/.codex/config.toml` Step 2. Add these three lines at the top level — before any `[section]` headers in the file: `[section]` `model = "gpt-5.6-sol" model_context_window = 1000000 model_auto_compact_token_limit = 900000` Each key does one job: [...] Each key does one job: | Key | What it sets | --- | | `model` | Selects GPT-5.6 Sol as the active model | | `model_context_window` | Sets Codex's context budget to 1,000,000 tokens | | `model_auto_compact_token

How to Unlock 1M Context in Codex - by Leonardo Gonzaleztrilogyai.substack.com · supporting

Tibo@thsottiaux GPT-5.6 Sol 1M in Codex. This used to only work for API keys, but we just flipped the switch and works for usage through ChatGPT accounts now too. The same warning applies, there is a reason the current context length is the default, we have tuned it to ~perfection. But you do 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 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 12:13 AM · Aug 17, 2026 · 1.57M Views 618 Replies · 253 Reposts · 6.05K Likes The earlier failures, the model catalog, and my long-context tests explain why this guide needs more than one TOML setting. [...] 146 Replies · 5 Reposts · 886 Likes The next day he posted the configuration values for a one-million-token window. They were familiar. I had already tried the same configuration months ago and foun

Codex Has a 1M Context Window — Here's How to Enable Ityoutube.com · supporting

If you've noticed your codex compacts its context at 256,000 tokens or That's because 1 million is not the default, despite it being advertised that GPT 5.6 sol does have a million context window. But here Tibo finally posted how to actually get your Codex to the million token context window, and the first thing we need to do is open this config file. We'll just use vim. So we'll do vim. we already have the model set to GPT 5.6 Sol and we don't see the other options that he listed. So all we do is press I for the interactive mode. So we could add the other options and then paste these two things. Model context window and model auto compact token limit and auto compact token limit is a bit smaller than the max context window because you want to give your agent a little bit of headroom. So [...] you want to give your agent a little bit of headroom. So it would actually be able to compact whatever you were doing, instead of it running into the context window limit and not doing anything a

Tibo on X: "GPT-5.6 Sol 1M in Codex. This used to only work for API keys, but we just flipped the switch and works for usage through ChatGPT accounts now too. The same warning applies, there is a reason the current context length is the default, we have tuned it to ~perfection. But you do you!" / Xx.com · supporting

@thsottiaux Tibo @thsottiaux Aug 16 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 12:13 AM · Aug 17, 20261.6MViews 613 @xt0n1t3ch xt0n1 ツ @xt0n1t3ch Aug 17 Thanks Tibo! How about a reset to celebrate? 👀 11 @TheAhmadOsman Ahmad @TheAhmadOsman Aug 17 Tibo let’s celebrate with a performative reset 4 @SolipsRenatus Solipsnitsyn Renatus Aug 17 two posts now where you've mentioned this and failed to address the 2x cost above 258k [...] @thsottiaux Tibo @thsottiaux Aug 16 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

"Tibo just made a guide on how to turn on 1M token context ...x.com · supporting

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