Skip to content

fix(proxy): register WebSocket passthrough for OpenAI prefixes (CI mirror of #36151) - #37120

Closed
mateo-berri wants to merge 10 commits into
litellm_internal_stagingfrom
litellm_pr36151_ci_mirror
Closed

fix(proxy): register WebSocket passthrough for OpenAI prefixes (CI mirror of #36151)#37120
mateo-berri wants to merge 10 commits into
litellm_internal_stagingfrom
litellm_pr36151_ci_mirror

Conversation

@mateo-berri

Copy link
Copy Markdown
Contributor

CI vehicle for PR #36151, whose fork pushes produce no GitHub Actions check suites (close/reopen and new pushes were tried). Same head sha 862f33b, so the check runs attach to that commit and satisfy the required contexts on the original PR

Do not merge or review. This draft gets closed once #36151 lands

LHMQ878 and others added 7 commits August 7, 2026 10:47
create_websocket_passthrough_route existed but /openai and
/openai_passthrough only registered HTTP methods, so WS upgrades were
rejected at routing. Add catch-all websocket routes mirroring the HTTP
passthrough target construction.

Fixes #36088
Forward realtime model query string, keep OPENAI_API_KEY (forward_headers=False),
satisfy ruff strict gates, sync dashboard OpenAPI types, and cover the behavior in tests.
- decode upstream first frame as utf-8 instead of ascii
- reject model-restricted keys at connect to match HTTP model enforcement
- log the actual request path for /openai_passthrough traffic
@CLAassistant

CLAassistant commented Aug 16, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

…itellm_pr36151_ws_passthrough

# Conflicts:
#	litellm/proxy/pass_through_endpoints/pass_through_endpoints.py
#	tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py
@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 22.22222% with 28 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ass_through_endpoints/llm_passthrough_endpoints.py 23.52% 26 Missing ⚠️
...y/pass_through_endpoints/pass_through_endpoints.py 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@codspeed-hq

codspeed-hq Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_pr36151_ci_mirror (5965648) with litellm_internal_staging (973329e)

Open in CodSpeed

@mateo-berri

Copy link
Copy Markdown
Contributor Author

Closing: CI mirror no longer needed, PR 36151 runs its own checks after the conflict resolution.

@mateo-berri
mateo-berri deleted the litellm_pr36151_ci_mirror branch August 16, 2026 22:44
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.

3 participants