From a4491658e3e04fcf00e492b62ce6ae5065487dfe Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 25 Nov 2024 15:50:58 -0800 Subject: [PATCH] add "openai/*" in allowed models check --- litellm/proxy/auth/auth_checks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index b47cb19a5..2f2450340 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -908,6 +908,9 @@ def _model_is_within_list_of_allowed_models( return True if "all-proxy-models" in allowed_models: return True + # Note: This is here to maintain backwards compatibility. This Used to be in our code and removing could impact existing customer code + if "openai/*" in allowed_models: + return True if model in allowed_models: return True if _model_matches_patterns(model=model, allowed_models=allowed_models) is True: