mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix mypy
This commit is contained in:
parent
f510ac15f8
commit
fc82b81de5
1 changed files with 3 additions and 0 deletions
|
|
@ -1280,6 +1280,9 @@ async def websocket_passthrough_request( # noqa: PLR0915
|
|||
try:
|
||||
# Wait for the first response from upstream
|
||||
raw_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}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue