mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
refactor(lowest_latency.py): fix linting error
This commit is contained in:
parent
22a900463e
commit
9dc2bc227b
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ class LowestLatencyLoggingHandler(CustomLogger):
|
||||||
continue # skip to next one
|
continue # skip to next one
|
||||||
|
|
||||||
# get average latency
|
# get average latency
|
||||||
total = 0
|
total = 0.0
|
||||||
for _call_latency in item_latency:
|
for _call_latency in item_latency:
|
||||||
if isinstance(_call_latency, timedelta):
|
if isinstance(_call_latency, timedelta):
|
||||||
total += float(_call_latency.total_seconds())
|
total += float(_call_latency.total_seconds())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue