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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix: test_get_request_tags_from_metadata_and_litellm_metadata
Sameer Kankute2df9d8d4db88
diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.pyindex 5448fe7c771..ab55022f8ce 100644--- a/litellm/litellm_core_utils/litellm_logging.py+++ b/litellm/litellm_core_utils/litellm_logging.py@@ -4800,7 +4800,7 @@ class StandardLoggingPayloadSetup:"""Extract additional header tags for spend tracking based on config."""- extra_headers: List[str] = litellm.extra_spend_tag_headers or []+ extra_headers: List[str] = getattr(litellm, "extra_spend_tag_headers", None) or []if not extra_headers:return None