Skip to content

[Bug Fix] gpt-5-chat-latest has incorrect max_input_tokens value - #15116

Merged
ishaan-jaff merged 1 commit into
mainfrom
litellm_fix_gpt_5_chat
Oct 1, 2025
Merged

ishaan-jaff merged 1 commit into
mainfrom
litellm_fix_gpt_5_chat

Conversation

@ishaan-jaff

Copy link
Copy Markdown
Contributor

[Bug Fix] gpt-5-chat-latest has incorrect max_input_tokens value

Source

Fixes #15057
Screenshot 2025-10-01 at 2 28 51 PM

Relevant issues

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature
✅ Test

Changes

@vercel

vercel Bot commented Oct 1, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Oct 1, 2025 9:29pm

@ishaan-jaff

Copy link
Copy Markdown
Contributor Author

Thanks @bachya

"max_output_tokens": 128000,
"max_tokens": 128000,
"max_input_tokens": 128000,
"max_output_tokens": 16384,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we follow the pattern of setting max_tokens== max_output_tokens in the codebase

max_tokens == context window

@ishaan-jaff
ishaan-jaff merged commit d9664a3 into main Oct 1, 2025
37 of 50 checks passed
@ishaan-berri
ishaan-berri deleted the litellm_fix_gpt_5_chat branch March 26, 2026 21:53
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026

This branch was successfully deployed

1 active deployment
Preview — 80494ef5 Deployed Oct 1, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: gpt-5-chat-latest has incorrect max_input_tokens value

1 participant