mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(lowest_tpm_rpm_routing.py): broaden scope of get deployment logic
This commit is contained in:
parent
a6719caebd
commit
b66cf0aa43
3 changed files with 90 additions and 22 deletions
|
@ -1622,7 +1622,7 @@ class Router:
|
|||
and self.lowesttpm_logger is not None
|
||||
):
|
||||
min_deployment = self.lowesttpm_logger.get_available_deployments(
|
||||
model_group=model
|
||||
model_group=model, healthy_deployments=healthy_deployments
|
||||
)
|
||||
if min_deployment is None:
|
||||
min_deployment = random.choice(healthy_deployments)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue