Repository navigation
fix(responses): raise on failed chat streams - #36782
nightcityblade wants to merge 2 commits into
Conversation
|
Too many files changed for review (363 files, 100 file limit). Bypass the limit by tagging |
|
nightcityblade seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
fc314b1 to
45baf8c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
45baf8c to
23f8466
Compare
|
CI follow-up: fixed the two Verified locally:
The remaining OSV failure is repository-wide ( |
TLDR
Problem this solves:
How it solves it:
User Flow
Before: a developer streaming chat completions receives an empty success when the upstream model fails
POST https://<proxy>/v1/chat/completionswith"stream": trueresponse.failedorerrorfinish_reason=stopAfter: the same upstream failure triggers normal error and fallback handling
POST https://<proxy>/v1/chat/completionswith"stream": trueresponse.failedorerrorRelevant issues
Fixes #36768
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
The linked issue includes the intermittent live provider capture. The deterministic regression suite feeds both raw failure event shapes through the chat bridge:
Type
🐛 Bug Fix
Caveats (if any)
QA runbook
N/A — this PR adds a focused unit regression, not an e2e test.
Final Attestation