From 76dec9a0e8488b576a5abe32c8d90497de3b112c Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 25 Nov 2024 14:32:26 -0800 Subject: [PATCH] fix error msg --- litellm/proxy/auth/auth_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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