Repository navigation
test(chatgpt): expect the provider code relayed on a streamed top-level rate limit - #54202
Merged
mateo-berri merged 1 commit intoNov 24, 2026
Conversation
…el rate limit Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
mateo-berri
approved these changes
Nov 24, 2026
mateo-berri
enabled auto-merge (squash)
November 24, 2026 18:02
Contributor
PR overviewNo security issues were found in this pull request. Reviews
|
mateo-berri
deleted the
litellm_flakeheal_20261124_test_chatgpt_stream_top_level_rate_limit
branch
November 24, 2026 18:07
mateo-berri
added a commit
to zoveki/litellm
that referenced
this pull request
Nov 25, 2026
…el rate limit (BerriAI#54202) Co-authored-by: mateo <277851410+mateo-berri@users.noreply.github.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> (cherry picked from commit 5f23aa8)
1 of 13 tasks
yuneng-berri
added a commit
that referenced
this pull request
Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handwritten 1-3 sentence description
The ChatGPT streaming test for a top-level rate limit went red on main once the proxy began relaying the provider's own error code next to the message, which the test's expected error did not include. This PR adds that relayed code to the expected error, so the test again checks the whole error a client receives
Details
Link to Devin session: https://app.devin.ai/sessions/6710f2ac1e124ae5847ccef8a89cce54
Open in Devin Desktop: https://app.devin.ai/desktop/session/6710f2ac1e124ae5847ccef8a89cce54?variant=devin
Requested by: @mateo-berri
TLDR
Problem this solves:
test_chatgpt_stream_top_level_rate_limit_fails_with_the_provider_code_and_messageis red on mainintegration providersrunsAssertionErroron an error that now carriesprovider_specific_fieldsHow it solves it:
response.failederror gainedprovider_specific_fields: {"code": "rate_limit_exceeded"}tests/touchedType
✅ Test
Screenshots / Proof of Fix
E2E exception at 452aabf: test-only change to one expected value, proven on the integration rig
All runs used
INTEGRATION_WORKERS=1 INTEGRATION_SHARD_FILES=<this file> bash .github/scripts/ci/run_integration.sh providersagainst Postgres and Redis containers, the same script theintegration providersjob runs1 failed, 1 passed, with the sameAssertionErroras CI2 passedeach timeFinal Attestation