forked from phoenix/litellm-mirror
fix least_busy router by updating min_traffic
This commit is contained in:
parent
f0df28362a
commit
6b19db0327
1 changed files with 2 additions and 1 deletions
|
@ -1177,6 +1177,7 @@ class Router:
|
|||
min_deployment = None
|
||||
for k, v in deployments.items():
|
||||
if v < min_traffic:
|
||||
min_traffic = v
|
||||
min_deployment = k
|
||||
############## No Available Deployments passed, we do a random pick #################
|
||||
if min_deployment is None:
|
||||
|
@ -1248,4 +1249,4 @@ class Router:
|
|||
litellm.failure_callback = []
|
||||
litellm._async_failure_callback = []
|
||||
self.flush_cache()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue