From 007385aca687e5dc7327ddb2a4c79040ce36379f Mon Sep 17 00:00:00 2001 From: shrey kharbanda Date: Tue, 27 Oct 2026 22:06:25 +0000 Subject: [PATCH] refactor(passthrough): drop the _send_to_client docstring --- .../proxy/pass_through_endpoints/pass_through_endpoints.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py index f8953c44ba2..de0fcb675bf 100644 --- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py +++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py @@ -2430,11 +2430,6 @@ def _client_socket_is_open(websocket: WebSocket) -> bool: async def _send_to_client(websocket: WebSocket, frame: str | bytes) -> bool: - """ - False once the client has gone, so the relay ends the session like a client disconnect and still bills what the - upstream produced. Starlette raises WebSocketDisconnect when the transport errors. RuntimeError comes from uvicorn - after the client's close has arrived, or from the event loop once the transport is closed - """ try: if isinstance(frame, bytes): await websocket.send_bytes(frame)