From 1cf002fd2bb427cf3fa8475706f726331716ef0b Mon Sep 17 00:00:00 2001
From: Peter Boers
Date: Thu, 10 Sep 2026 12:16:01 +0200
Subject: [PATCH] Update route_llm_request.py
Co-authored-by: veria-ai[bot] <224490171+veria-ai[bot]@users.noreply.github.com>
---
litellm/proxy/route_llm_request.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/litellm/proxy/route_llm_request.py b/litellm/proxy/route_llm_request.py
index 48fdf29c209..b5c8daa1684 100644
--- a/litellm/proxy/route_llm_request.py
+++ b/litellm/proxy/route_llm_request.py
@@ -542,7 +542,7 @@ async def _route_request_single_attempt( # noqa: ANN202 # returns unawaited pr
# Otherwise the branches below swallow the request and it fails with
# "no healthy deployments": `map_team_model` claims it for team-scoped keys, and the
# wildcard/default-deployment fallback claims it whenever a pattern model group exists.
- if _is_a2a_agent_model(data.get("model", "")):
+ if route_type == "acompletion" and _is_a2a_agent_model(data.get("model", "")):
from litellm.proxy.agent_endpoints.a2a_routing import (
route_a2a_agent_request,
)