From 5b7c3c718756026528cf6dd2b03dafe67bab0fe6 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 8 Jan 2024 23:07:43 +0530 Subject: [PATCH] refactor(lowest_latency.py): fix linting issue --- 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())