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
fix mypy
Sameerlitefc82b81de5d1
diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.pyindex e0e6667bc9a..2019c9a3aaa 100644--- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py+++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py@@ -1280,6 +1280,9 @@ async def websocket_passthrough_request( # noqa: PLR0915try:# Wait for the first response from upstreamraw_response = await upstream_ws.recv(decode=False)+ # Ensure raw_response is bytes before decoding+ if isinstance(raw_response, str):+ raw_response = raw_response.encode("ascii")setup_response = json.loads(raw_response.decode("ascii"))verbose_proxy_logger.debug(f"Setup response: {setup_response}")