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(proxy): change model mismatch logs from WARNING to DEBUG (#20994)
milan-berria2e9e73b647c
diff --git a/litellm/proxy/common_request_processing.py b/litellm/proxy/common_request_processing.pyindex f33b2412260..a02bc7f9e51 100644--- a/litellm/proxy/common_request_processing.py+++ b/litellm/proxy/common_request_processing.py@@ -282,7 +282,7 @@ def _override_openai_response_model(if isinstance(response_obj, dict):downstream_model = response_obj.get("model")if downstream_model != requested_model:- verbose_proxy_logger.warning(+ verbose_proxy_logger.debug("%s: response model mismatch - requested=%r downstream=%r. Overriding response['model'] to requested model.",log_context,requested_model,@@ -301,7 +301,7 @@ def _override_openai_response_model(downstream_model = getattr(response_obj, "model", None)if downstream_model != requested_model:- verbose_proxy_logger.warning(+ verbose_proxy_logger.debug("%s: response model mismatch - requested=%r downstream=%r. Overriding response.model to requested model.",log_context,requested_model,diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex fd86c5e1d21..63109916ab1 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -4915,7 +4915,7 @@ def _restamp_streaming_chunk_model(chunk.get("model") if isinstance(chunk, dict) else getattr(chunk, "model", None))if not model_mismatch_logged and downstream_model != requested_model_from_client:- verbose_proxy_logger.warning(+ verbose_proxy_logger.debug("litellm_call_id=%s: streaming chunk model mismatch - requested=%r downstream=%r. Overriding model to requested.",request_data.get("litellm_call_id"),requested_model_from_client,