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 code QA
Ishaan Jaffer46cbf673b607
diff --git a/litellm/integrations/prometheus.py b/litellm/integrations/prometheus.pyindex 63eff5c2c9e..bb9d6166b01 100644--- a/litellm/integrations/prometheus.py+++ b/litellm/integrations/prometheus.py@@ -875,14 +875,6 @@ class PrometheusLogger(CustomLogger):# Include top-level metadata fields (excluding nested dictionaries)# This allows accessing fields like requester_ip_address from top-level metadatatop_level_metadata = standard_logging_payload.get("metadata", {})- top_level_fields: Dict[str, Any] = {}- if isinstance(top_level_metadata, dict):- top_level_fields = {- k: v- for k, v in top_level_metadata.items()- if not isinstance(v, dict) # Exclude nested dicts to avoid conflicts- }-combined_metadata: Dict[str, Any] = {**(_requester_metadata if _requester_metadata else {}),**(user_api_key_auth_metadata if user_api_key_auth_metadata else {}),