GPT-5 Context window

Resolved 💬 5 comments Opened Aug 8, 2025 by thehumanworks Closed Sep 7, 2025

https://github.com/openai/codex/blob/431c9299d495ef771288caf0dcf5952c585f7023/codex-rs/core/src/openai_model_info.rs#L80-L83

--

Not a moan or a bug, but a question (and my assumption as to 'why'):

  • the context window for GPT-5 in the file mentioned above is set to 200k tokens in the codex-cli. Why isn't the full 400k context window being used?
  • my assumption is that it's being done as an attempt to mitigate overloading the inference servers - which I definitely can both accept and understand - can you confirm if that's the case, and if so - when will it change (rough timeline)?

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗