mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-21 05:15:06 +00:00
format
This commit is contained in:
parent
a6fd5a8509
commit
d5109e2a56
1 changed files with 8 additions and 14 deletions
|
|
@ -155,13 +155,10 @@ class LowestLatencyLoggingHandler(CustomLogger):
|
|||
"time_to_first_token", []
|
||||
).append(time_to_first_token)
|
||||
else:
|
||||
request_count_dict[id][
|
||||
"time_to_first_token"
|
||||
] = request_count_dict[id]["time_to_first_token"][
|
||||
1:
|
||||
] + [
|
||||
time_to_first_token
|
||||
]
|
||||
request_count_dict[id]["time_to_first_token"] = (
|
||||
request_count_dict[id]["time_to_first_token"][1:]
|
||||
+ [time_to_first_token]
|
||||
)
|
||||
|
||||
if precise_minute not in request_count_dict[id]:
|
||||
request_count_dict[id][precise_minute] = {}
|
||||
|
|
@ -383,13 +380,10 @@ class LowestLatencyLoggingHandler(CustomLogger):
|
|||
"time_to_first_token", []
|
||||
).append(time_to_first_token)
|
||||
else:
|
||||
request_count_dict[id][
|
||||
"time_to_first_token"
|
||||
] = request_count_dict[id]["time_to_first_token"][
|
||||
1:
|
||||
] + [
|
||||
time_to_first_token
|
||||
]
|
||||
request_count_dict[id]["time_to_first_token"] = (
|
||||
request_count_dict[id]["time_to_first_token"][1:]
|
||||
+ [time_to_first_token]
|
||||
)
|
||||
|
||||
if precise_minute not in request_count_dict[id]:
|
||||
request_count_dict[id][precise_minute] = {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue