💫
Как включить 1 млн токенов в Codex на GPT-5.4
Да, в
OpenAI Codex для
GPT-5.4 можно включить экспериментальное окно контекста на
1 млн токенов.
Но по дефолту там стоит обычный лимит —
272K.
Чтобы включить расширенный режим, нужно поменять
2 параметра в конфиге:
📶 model_context_window — размер контекстного окна
model_auto_compact_token_limit — порог, после которого включается авто-сжатие токенов
Самое удобное — не искать файл руками, а просто дать агенту вот такой запрос в
Codex CLI:
Find the Codex/OpenAI configuration files used in this environment and update them to enable the experimental 1,000,000 token context window for GPT-5.4.
Set:
- model_context_window = 1000000
- model_auto_compact_token_limit = 1000000
Requirements:
1. Inspect the repo and local config files to find the correct place to apply these settings.
2. If multiple config files exist, update the active one and explain why it is the active one.
3. Preserve existing settings and formatting style.
4. If the settings already exist, only change their values.
5. If they do not exist, add them in the correct section.
6. After editing, show me the diff.
7. Then summarize what was changed and mention any file paths I may need to restart or reload.
Do not change the selected model unless necessary. Keep GPT-5.4 as the target model.
Фишка в том, что Codex сам:
— найдёт нужный конфиг
— поймёт, какой файл активный
— аккуратно внесёт правки
— покажет diff после изменений
То есть не надо сидеть и гадать, куда именно это вписывать.
Но есть важный момент:
если вылезаете за
272K токенов, входные токены начинают считаться
по двойной цене.
Короче, 1 млн токенов — это мощно.
Но кошелёк лучше тоже подготовить.
😎
КиберПоток |
Навигация
#новость #Al #codex
#КП