diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index e5712f9c000..5a258d74181 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -3354,6 +3354,7 @@ async def _check_team_member_model_budget( """ if ( team_object is None + or team_object.team_id is None or valid_token is None or valid_token.user_id is None or model is None