From a35f4272f4809a1ccefd0894bf954f92c4e2536c Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 9 Jan 2024 09:51:43 +0530 Subject: [PATCH] refactor(lowest_latency.py): fix linting error --- 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 d1598dbdeef..43e28a8b3aa 100644 --- a/litellm/router_strategy/lowest_latency.py +++ b/litellm/router_strategy/lowest_latency.py @@ -142,7 +142,7 @@ class LowestLatencyLoggingHandler(CustomLogger): continue # skip to next one # get average latency - total = 0 + total = 0.0 for _call_latency in item_latency: if isinstance(_call_latency, timedelta): total += float(_call_latency.total_seconds())