mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-25 12:23:06 +00:00
fix(models): correct max_input_tokens for GPT-5 models (#19056)
OpenAI's 400k context window is split between input and output: - GPT-5/5.1/5.2 models: 272k input + 128k output = 400k context - GPT-5-pro models: 128k input + 272k output = 400k context Reference: https://openai.com/index/introducing-gpt-5-for-developers/ "In the API, all GPT-5 models can accept a maximum of 272,000 input tokens and emit a maximum of 128,000 reasoning & output tokens" Fixes incorrect 400k max_input_tokens values across 32 models.
This commit is contained in: