mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
style: use not team_object.models consistently for empty-list checks
This commit is contained in:
parent
191bb9504d
commit
fdad43b6dd
1 changed files with 2 additions and 2 deletions
|
|
@ -9275,7 +9275,7 @@ async def _add_access_group_models_to_team_models(
|
|||
# Skip teams with empty models list — they already have access to everything
|
||||
# (handled by _add_team_models_to_all_models)
|
||||
if (
|
||||
len(team_object.models) == 0
|
||||
not team_object.models
|
||||
or SpecialModelNames.all_proxy_models.value in team_object.models
|
||||
):
|
||||
continue
|
||||
|
|
@ -9869,7 +9869,7 @@ async def _filter_models_by_team_id(
|
|||
team_accessible_model_ids: Set[str] = set()
|
||||
|
||||
if (
|
||||
len(team_object.models) == 0 # empty list = all model access
|
||||
not team_object.models # empty list = all model access
|
||||
or SpecialModelNames.all_proxy_models.value in team_object.models
|
||||
):
|
||||
# Team has access to all models
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue