mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
perf(router): remove redundant .items() for dictionary length check
This commit is contained in:
parent
9bbb4491d0
commit
797e9df926
1 changed files with 1 additions and 3 deletions
|
|
@ -233,9 +233,7 @@ class LowestCostLoggingHandler(CustomLogger):
|
|||
input_tokens = 0
|
||||
|
||||
# randomly sample from all_deployments, incase all deployments have latency=0.0
|
||||
_items = random.sample(
|
||||
list(all_deployments.items()), len(all_deployments.items())
|
||||
)
|
||||
_items = random.sample(list(all_deployments.items()), len(all_deployments))
|
||||
|
||||
### GET AVAILABLE DEPLOYMENTS ### filter out any deployments > tpm/rpm limits
|
||||
potential_deployments = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue