diff --git a/litellm/router.py b/litellm/router.py index 0276f5a44..835501c84 100644 --- a/litellm/router.py +++ b/litellm/router.py @@ -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() - \ No newline at end of file +