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
refactor(proxy): assign the fallback model on the fresh snapshot instead of building a dict literal
yucheng9faaf7f4d436
diff --git a/litellm/proxy/common_request_processing.py b/litellm/proxy/common_request_processing.pyindex 7c9a296965c..d18fab1c9f0 100644--- a/litellm/proxy/common_request_processing.py+++ b/litellm/proxy/common_request_processing.py@@ -2113,7 +2113,8 @@ class ProxyBaseLLMRequestProcessing:for fallback_model in fallback_models:if fallback_model == original_model:continue- self.data = {**independent_snapshot(pristine), "model": fallback_model}+ self.data = independent_snapshot(pristine)+ self.data["model"] = fallback_modeltry:return await self.common_processing_pre_call_logic(request=request,