Skip to content

Conversation

@hahamark1
Copy link

Title

Add gpt 5 specific context window exceeded message

Relevant issues

Actually closes #15981

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

🐛 Bug Fix

Changes

This PR adds error handling specifically for azure gpt 5 deployments as they return a different message on exceeding the context window than gpt4 models.

@vercel
Copy link

vercel bot commented Nov 12, 2025

@hahamark1 is attempting to deploy a commit to the CLERKIEAI Team on Vercel.

A member of the Team first needs to authorize it.

@hahamark1 hahamark1 changed the title Add gpt 5 specific context window exceeded message Add azure gpt 5 specific context window exceeded message Nov 12, 2025
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.

1 participant