mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-31 06:56:59 +00:00
fix(router): update tag-routing test fake for get_all_deployments
Router renamed _get_all_deployments to get_all_deployments; the TagRoutingFallbackRouter fake still used the private name, so can_satisfy_confirmed_routing_tags saw an empty pool and fail-opened.
This commit is contained in:
parent
22780db2d8
commit
08792d82d7
1 changed files with 1 additions and 1 deletions
|
|
@ -590,7 +590,7 @@ class TagRoutingFallbackRouter:
|
|||
def log_retry(self, kwargs, e):
|
||||
return kwargs
|
||||
|
||||
def _get_all_deployments(self, model_name: str, **kwargs):
|
||||
def get_all_deployments(self, model_name: str, **kwargs):
|
||||
return list(self.deployments_by_group.get(model_name, []))
|
||||
|
||||
async def async_function_with_fallbacks(self, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue