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
|
min_deployment = None
|
||||||
for k, v in deployments.items():
|
for k, v in deployments.items():
|
||||||
if v < min_traffic:
|
if v < min_traffic:
|
||||||
|
min_traffic = v
|
||||||
min_deployment = k
|
min_deployment = k
|
||||||
############## No Available Deployments passed, we do a random pick #################
|
############## No Available Deployments passed, we do a random pick #################
|
||||||
if min_deployment is None:
|
if min_deployment is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue