mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Remove duplicate code in router_strategy
This commit is contained in:
parent
689221b5c7
commit
d57ecf3371
2 changed files with 0 additions and 6 deletions
|
|
@ -101,9 +101,6 @@ class LowestCostLoggingHandler(CustomLogger):
|
|||
if precise_minute not in request_count_dict[id]:
|
||||
request_count_dict[id][precise_minute] = {}
|
||||
|
||||
if precise_minute not in request_count_dict[id]:
|
||||
request_count_dict[id][precise_minute] = {}
|
||||
|
||||
## TPM
|
||||
request_count_dict[id][precise_minute]["tpm"] = (
|
||||
request_count_dict[id][precise_minute].get("tpm", 0) + total_tokens
|
||||
|
|
|
|||
|
|
@ -115,9 +115,6 @@ class LowestLatencyLoggingHandler(CustomLogger):
|
|||
if precise_minute not in request_count_dict[id]:
|
||||
request_count_dict[id][precise_minute] = {}
|
||||
|
||||
if precise_minute not in request_count_dict[id]:
|
||||
request_count_dict[id][precise_minute] = {}
|
||||
|
||||
## TPM
|
||||
request_count_dict[id][precise_minute]["tpm"] = (
|
||||
request_count_dict[id][precise_minute].get("tpm", 0) + total_tokens
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue