mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
Fix syntax errors from botched merge in router.py
This commit is contained in:
parent
87fa3323ff
commit
36f03f1087
1 changed files with 6 additions and 4 deletions
|
|
@ -9422,21 +9422,23 @@ class Router:
|
|||
_pre_model_access_group_filter_len > 0 and len(healthy_deployments) == 0
|
||||
)
|
||||
|
||||
if len(healthy_deployments) == 0:
|
||||
# check if the user sent in a deployment name instead
|
||||
# Do not fall back when access-group filtering removed every candidate;
|
||||
if len(healthy_deployments) == 0:
|
||||
# check if the user sent in a deployment name instead
|
||||
# Do not fall back when access-group filtering removed every candidate;
|
||||
# _get_deployment_by_litellm_model does not re-apply that filter.
|
||||
if _pre_model_access_group_filter_len == 0:
|
||||
_litellm_model_deployments = self._get_deployment_by_litellm_model(model=model)
|
||||
_litellm_model_deployments = self._get_deployment_by_litellm_model(
|
||||
model=model
|
||||
)
|
||||
healthy_deployments = self._filter_deployments_by_model_access_groups(
|
||||
model=model,
|
||||
healthy_deployments=_litellm_model_deployments,
|
||||
request_kwargs=request_kwargs,
|
||||
request_team_id=request_team_id,
|
||||
)
|
||||
|
||||
if verbose_router_logger.isEnabledFor(logging.DEBUG):
|
||||
verbose_router_logger.debug(
|
||||
f"initial list of deployments: {healthy_deployments}"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue