From ba4e1a7a0d9228a4624b1c06e241ae699bb34cac Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 25 Nov 2024 14:02:31 -0800 Subject: [PATCH] fix model auth checks --- litellm/proxy/auth/auth_checks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index 52f7f22fe..ac93315f8 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -893,6 +893,8 @@ def _model_is_within_list_of_allowed_models( return True if "all-proxy-models" in allowed_models: return True + if model in allowed_models: + return True if model_matches_patterns(model=model, allowed_models=allowed_models) is True: return True