From 5bb036451398299fb9cebb7b3a99ac14725b82c7 Mon Sep 17 00:00:00 2001 From: Michael Riad Zaky Date: Thu, 30 Apr 2026 17:57:29 -0700 Subject: [PATCH] default requested_model to empty string on litellm-side rejects --- litellm/integrations/prometheus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/integrations/prometheus.py b/litellm/integrations/prometheus.py index 3872292cae5..7d3856ea63a 100644 --- a/litellm/integrations/prometheus.py +++ b/litellm/integrations/prometheus.py @@ -1929,7 +1929,7 @@ class PrometheusLogger(CustomLogger): or _litellm_params_metadata.get("user_agent"), } - def set_llm_deployment_failure_metrics(self, request_kwargs: dict): + def set_llm_deployment_failure_metrics(self, request_kwargs: dict): # noqa: PLR0915 """ Sets Failure metrics when an LLM API call fails @@ -2021,7 +2021,7 @@ class PrometheusLogger(CustomLogger): label_model_id = "" label_api_base = "" label_api_provider = "" - label_requested_model = litellm_model_name or model_group + label_requested_model = litellm_model_name or model_group or "" enum_values = UserAPIKeyLabelValues( litellm_model_name=label_litellm_model_name,