mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(proxy): place mutable-ok on OpenAI WS headers dict literal
This commit is contained in:
parent
ae4ee36590
commit
7a9c38ed0f
1 changed files with 2 additions and 2 deletions
|
|
@ -1970,9 +1970,9 @@ async def openai_websocket_proxy_route(
|
|||
wss_target: Final = (
|
||||
f"{wss_base}{'&' if '?' in wss_base else '?'}{query_string}" if query_string else wss_base
|
||||
)
|
||||
custom_headers: Final = {
|
||||
custom_headers: Final = { # mutable-ok: websocket_passthrough_request requires a plain dict of upstream headers
|
||||
"Authorization": f"Bearer {openai_api_key}"
|
||||
} # mutable-ok: websocket_passthrough_request requires a plain dict of upstream headers
|
||||
}
|
||||
|
||||
await websocket_passthrough_request(
|
||||
websocket=websocket,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue