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
Merge pull request #18763 from BerriAI/litellm_staging_01_07_2026
Sameer Kankute844c766c6508
diff --cc litellm/integrations/prometheus.pyindex e4aca5ced04,2ec2f41b3bb..ab92d334ae7--- a/litellm/integrations/prometheus.py+++ b/litellm/integrations/prometheus.py@@@ -1198,17 -1267,11 +1272,17 @@@ class PrometheusLogger(CustomLogger)standard_logging_payload: StandardLoggingPayload = kwargs.get("standard_logging_object", {})++ if self._should_skip_metrics_for_invalid_key(+ kwargs=kwargs, standard_logging_payload=standard_logging_payload+ ):+ return++ model = kwargs.get("model", "")+litellm_params = kwargs.get("litellm_params", {}) or {}get_end_user_id_for_cost_tracking = _get_cached_end_user_id_for_cost_tracking()-+end_user_id = get_end_user_id_for_cost_tracking(litellm_params, service_type="prometheus")