mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-04 07:27:51 +00:00
refactor(passthrough): drop the _send_to_client docstring
This commit is contained in:
parent
795e622c63
commit
007385aca6
1 changed files with 0 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue