From 819abb47a666fff5b8933b24329623070f43f188 Mon Sep 17 00:00:00 2001 From: yucheng Date: Tue, 3 Nov 2026 04:57:59 -0800 Subject: [PATCH] style(proxy): format the callback header call sites --- .../pass_through_endpoints.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py index a03b436d47c..81f7176ba68 100644 --- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py +++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py @@ -2152,9 +2152,11 @@ async def pass_through_request( request_headers=dict(redact_credential_headers(request.headers)), ) if callback_headers: - _response_headers = _with_callback_headers( # rebind-ok: replaces this branch's headers with the room kept - _response_headers, # pyright: ignore[reportUnknownArgumentType] # untyped header dict - callback_headers, + _response_headers = ( + _with_callback_headers( # rebind-ok: replaces this branch's headers with the room kept + _response_headers, # pyright: ignore[reportUnknownArgumentType] # untyped header dict + callback_headers, + ) ) return StreamingResponse( @@ -2260,9 +2262,11 @@ async def pass_through_request( request_headers=dict(redact_credential_headers(request.headers)), ) if callback_headers: - _response_headers = _with_callback_headers( # rebind-ok: replaces this branch's headers with the room kept - _response_headers, # pyright: ignore[reportUnknownArgumentType] # untyped header dict - callback_headers, + _response_headers = ( + _with_callback_headers( # rebind-ok: replaces this branch's headers with the room kept + _response_headers, # pyright: ignore[reportUnknownArgumentType] # untyped header dict + callback_headers, + ) ) return StreamingResponse(