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
undo changes to route llm request
Ishaan Jaffcbf0fa44b4a8
diff --git a/litellm/proxy/route_llm_request.py b/litellm/proxy/route_llm_request.pyindex d5c2e2c087d..ac9332b219b 100644--- a/litellm/proxy/route_llm_request.py+++ b/litellm/proxy/route_llm_request.py@@ -94,7 +94,9 @@ async def route_request()elif data["model"] not in router_model_names:- if (+ if llm_router.router_general_settings.pass_through_all_models:+ return getattr(litellm, f"{route_type}")(**data)+ elif (llm_router.default_deployment is not Noneor len(llm_router.pattern_router.patterns) > 0):@@ -102,8 +104,6 @@ async def route_request(elif route_type == "amoderation":# moderation endpoint does not require `model` parameterreturn getattr(llm_router, f"{route_type}")(**data)- else:- return getattr(litellm, f"{route_type}")(**data)elif user_model is not None:return getattr(litellm, f"{route_type}")(**data)