diff --git a/litellm/proxy/auth/auth_checks.py b/litellm/proxy/auth/auth_checks.py index ac93315f8..d5485fdc0 100644 --- a/litellm/proxy/auth/auth_checks.py +++ b/litellm/proxy/auth/auth_checks.py @@ -873,7 +873,7 @@ async def can_key_call_model( is False ): raise ValueError( - f"API Key not allowed to access model. List of allowed models={filtered_models}. Tried to access {model}" + f"API Key not allowed to access model. This token can only access models={valid_token.models}. Tried to access {model}" ) valid_token.models = filtered_models