From 3cde96d84822316b8ea69330e7585b155ded8592 Mon Sep 17 00:00:00 2001 From: Mihidum Hettiyahandi <55163074+mihidumh@users.noreply.github.com> Date: Wed, 15 Jul 2026 12:14:32 +1000 Subject: [PATCH] refactor(router_strategy): align async else-branch with sync (response_seconds) Review nit: no behavioral difference (response_seconds = response_ms at that point), symmetry only. Co-Authored-By: Claude Fable 5 --- litellm/router_strategy/lowest_latency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/router_strategy/lowest_latency.py b/litellm/router_strategy/lowest_latency.py index da81534f389..ffe8245b012 100644 --- a/litellm/router_strategy/lowest_latency.py +++ b/litellm/router_strategy/lowest_latency.py @@ -295,7 +295,7 @@ class LowestLatencyLoggingHandler(CustomLogger): if normalized_value is not None: final_value = float(normalized_value) else: - final_value = response_ms + final_value = response_seconds if time_to_first_token_response_time is not None: if isinstance(time_to_first_token_response_time, timedelta):