mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(router.py): handle setting response headers during retries
This commit is contained in:
parent
d64e971d8c
commit
b0eff0b84f
3 changed files with 130 additions and 4 deletions
|
@ -9263,6 +9263,7 @@ def process_response_headers(response_headers: Union[httpx.Headers, dict]) -> di
|
|||
openai_headers = {}
|
||||
processed_headers = {}
|
||||
additional_headers = {}
|
||||
|
||||
for k, v in response_headers.items():
|
||||
if k in OPENAI_RESPONSE_HEADERS: # return openai-compatible headers
|
||||
openai_headers[k] = v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue