mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
handle exception and logged it
This commit is contained in:
parent
85679470c2
commit
54f8d06057
1 changed files with 5 additions and 1 deletions
|
@ -367,7 +367,11 @@ def get_custom_headers(*,
|
|||
'x-litellm-version': version,
|
||||
'"x-litellm-model-region': model_region
|
||||
}
|
||||
try:
|
||||
return {key: value for key, value in headers.items() if value not in exclude_values}
|
||||
except Exception as e:
|
||||
verbose_proxy_logger.error(f"Error setting custom headers: {e}")
|
||||
return {}
|
||||
|
||||
|
||||
async def check_request_disconnection(request: Request, llm_api_call_task):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue