From 7a9c38ed0f1302f9064962ed3f951a41ca6a9bd3 Mon Sep 17 00:00:00 2001 From: LHMQ878 <72402929@cityu-dg.edu.cn> Date: Fri, 7 Aug 2026 11:21:46 +0800 Subject: [PATCH] fix(proxy): place mutable-ok on OpenAI WS headers dict literal --- .../proxy/pass_through_endpoints/llm_passthrough_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py index 9ff71c77130..9ef5f22ec4b 100644 --- a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py +++ b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py @@ -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,