Skip to content

fix(responses): route mid-stream error events through exception_type so content_policy_fallbacks fire - #40988

Merged
mateo-berri merged 3 commits into
mainfrom
litellm_responses_stream_error_exception_mapping
Sep 15, 2026
Merged

mateo-berri merged 3 commits into
mainfrom
litellm_responses_stream_error_exception_mapping

fix(responses): keep context-window events out of mid-stream fallback…

fff7a2c
Select commit
Loading
Failed to load commit list.
Cursor / Cursor Bugbot succeeded Sep 13, 2026 in 3m 36s

Bugbot Review

Bugbot Analysis Progress (3m 47s elapsed)

✅ Gathered PR context (8s)
✅ Completed bug detection (3m 39s)
✅ Posted analysis results (1s)

Final Result: Bugbot completed review - no issues found! ✅

Request ID: serverGenReqId_1fe0d313-64de-48f1-a6ed-07e45a28f545

Details

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit fff7a2c. Configure here.