mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
style: apply ruff format to get_custom_headers return
This commit is contained in:
parent
0847efaf38
commit
45e102785e
1 changed files with 1 additions and 5 deletions
|
|
@ -1651,11 +1651,7 @@ class ProxyBaseLLMRequestProcessing:
|
|||
headers.update(logging_caching_headers)
|
||||
|
||||
try:
|
||||
return {
|
||||
key: safe_header_value(str(value))
|
||||
for key, value in headers.items()
|
||||
if value not in exclude_values
|
||||
}
|
||||
return {key: safe_header_value(str(value)) for key, value in headers.items() if value not in exclude_values}
|
||||
except Exception as e:
|
||||
verbose_proxy_logger.error("Error setting custom headers: %s", e)
|
||||
return {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue