From 2f849e59a96625cfa6ec7a04b8ce339b59ae8db8 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 15 Apr 2026 18:54:29 -0700 Subject: [PATCH] fix(complexity_router.py): cleanup --- .../router_strategy/complexity_router/complexity_router.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/litellm/router_strategy/complexity_router/complexity_router.py b/litellm/router_strategy/complexity_router/complexity_router.py index 7d6a8ca6e8a..d37ec116913 100644 --- a/litellm/router_strategy/complexity_router/complexity_router.py +++ b/litellm/router_strategy/complexity_router/complexity_router.py @@ -367,12 +367,8 @@ class ComplexityRouter(CustomLogger): call_type = ct break - # 2. Fall back to data-shape inference if call_type is None: - if "input" in request_kwargs: - call_type = CallTypes.responses - else: - return None + return None if call_type not in mappings: return None