mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix(llm_request_utils): handle None proxy_server_request without AttributeError
This commit is contained in:
parent
59d5901766
commit
efdeff89d8
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ def get_proxy_server_request_headers(litellm_params: Optional[dict]) -> dict:
|
|||
return {}
|
||||
|
||||
proxy_request_headers = (
|
||||
litellm_params.get("proxy_server_request", {}).get("headers", {}) or {}
|
||||
(litellm_params.get("proxy_server_request") or {}).get("headers") or {}
|
||||
)
|
||||
|
||||
return proxy_request_headers
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue