Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

better debugging for custom headers

Ishaan Jafff25ed92ee29a
diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py
index d91baf5cad8..c4401a2cf53 100644
--- a/litellm/proxy/auth/user_api_key_auth.py
+++ b/litellm/proxy/auth/user_api_key_auth.py
@@ -1310,8 +1310,9 @@ def get_api_key_from_custom_header(
# use this as the virtual key passed to litellm proxy
custom_litellm_key_header_name = custom_litellm_key_header_name.lower()
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,
+ request.headers,
)
custom_api_key = request.headers.get(custom_litellm_key_header_name)
if custom_api_key: