From 9dc2bc227b5029f6bfa50b16fbb8e0e96cf75dc1 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 d1598dbdee..43e28a8b3a 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())