mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
style(proxy): format the callback header call sites
This commit is contained in:
parent
0c07a613a7
commit
819abb47a6
1 changed files with 10 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue