From 38dca793ea1cade36b27e27b3ae7e3ed8cad56bf Mon Sep 17 00:00:00 2001 From: zouxiaoyue Date: Sat, 8 Aug 2026 01:49:03 +0800 Subject: [PATCH] refactor: remove redundant streaming route guards --- litellm/proxy/utils.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 1c680f095d1..03a2518e7d3 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -1775,12 +1775,7 @@ class ProxyLogging: get_call_types_for_route, ) - route: Final = user_api_key_dict.request_route - if not route: - return False - call_types: Final = get_call_types_for_route(route) - if not call_types: - return False + call_types: Final = get_call_types_for_route(user_api_key_dict.request_route) return any(guardrail.supports_streaming_call_type(call_type) for call_type in call_types) @staticmethod