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
style: run ruff format on fallback_event_handlers
ryan-crabbe-berri2de33555ea93
diff --git a/litellm/router_utils/fallback_event_handlers.py b/litellm/router_utils/fallback_event_handlers.pyindex 8c33bf1481f..934065aba6e 100644--- a/litellm/router_utils/fallback_event_handlers.py+++ b/litellm/router_utils/fallback_event_handlers.py@@ -412,7 +412,9 @@ async def run_async_fallback(# LOGGINGkwargs = litellm_router.log_retry(kwargs=kwargs, e=original_exception)verbose_router_logger.info("Falling back to model_group = %s", mask_sensitive_structure(mg))- kwargs = {k: v for k, v in kwargs.items() if k != "_target_order"} # rebind-ok: next hop must not inherit the previous order target+ kwargs = {+ k: v for k, v in kwargs.items() if k != "_target_order"+ } # rebind-ok: next hop must not inherit the previous order targetif isinstance(mg, str):kwargs["model"] = mgelif isinstance(mg, dict):