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:
Cesar Garcia
2026-01-14 19:01:23 +05:30
committed by GitHub
parent 4aadc0d41f
commit e0da7ca918
File diff suppressed because it is too large Load Diff