Update route_llm_request.py

Co-authored-by: veria-ai[bot] <224490171+veria-ai[bot]@users.noreply.github.com>
This commit is contained in:
Peter Boers 2026-09-10 12:16:01 +02:00 committed by GitHub
parent 8348e15857
commit 1cf002fd2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
)