The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(otel): cover websocket forwarded headers
shivame4a12510f647
diff --git a/tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py b/tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.pyindex 05371dccb23..d81e3ae5af8 100644--- a/tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py+++ b/tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py@@ -4931,7 +4931,7 @@ async def test_websocket_passthrough_propagates_active_trace_context(monkeypatchwebsocket.send_bytes = AsyncMock()websocket.receive = AsyncMock(return_value={"type": "websocket.disconnect"})websocket.close = AsyncMock()- websocket.headers = {}+ websocket.headers = {"authorization": "Bearer client"}websocket.client_state = WebSocketState.CONNECTEDwebsocket.application_state = WebSocketState.CONNECTEDtracer = TracerProvider().get_tracer("test")@@ -4959,7 +4959,7 @@ async def test_websocket_passthrough_propagates_active_trace_context(monkeypatchtarget="wss://upstream.example.test/v1/realtime",custom_headers={},user_api_key_dict=UserAPIKeyAuth(),- forward_headers=False,+ forward_headers=True,endpoint="/realtime",accept_websocket=True,)