mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
better debugging for custom headers
This commit is contained in:
parent
d71dc1acaf
commit
f25ed92ee2
1 changed files with 2 additions and 1 deletions
|
@ -1310,8 +1310,9 @@ def get_api_key_from_custom_header(
|
||||||
# use this as the virtual key passed to litellm proxy
|
# use this as the virtual key passed to litellm proxy
|
||||||
custom_litellm_key_header_name = custom_litellm_key_header_name.lower()
|
custom_litellm_key_header_name = custom_litellm_key_header_name.lower()
|
||||||
verbose_proxy_logger.debug(
|
verbose_proxy_logger.debug(
|
||||||
"searching for custom_litellm_key_header_name= %s",
|
"searching for custom_litellm_key_header_name= %s, in headers=%s",
|
||||||
custom_litellm_key_header_name,
|
custom_litellm_key_header_name,
|
||||||
|
request.headers,
|
||||||
)
|
)
|
||||||
custom_api_key = request.headers.get(custom_litellm_key_header_name)
|
custom_api_key = request.headers.get(custom_litellm_key_header_name)
|
||||||
if custom_api_key:
|
if custom_api_key:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue