From d825f9b95006ec44a7b31c9b2a11ce2dc7b0aa0d Mon Sep 17 00:00:00 2001 From: Harshit Jain <48647625+Harshit28j@users.noreply.github.com> Date: Wed, 11 Feb 2026 07:06:18 +0530 Subject: [PATCH] Update litellm/proxy/auth/user_api_key_auth.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/auth/user_api_key_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index b66f2f3f0ab..5042e82cc3b 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -903,7 +903,7 @@ async def _user_api_key_auth_builder( # noqa: PLR0915 assert api_key.startswith( "sk-" ), "LiteLLM Virtual Key expected. Received={}, expected to start with 'sk-'.".format( - f"{api_key[:3]}...{api_key[-4:]}" if len(api_key) > 7 else api_key + f"{api_key[:3]}...{api_key[-4:]}" if len(api_key) > 7 else "***" ) # prevent token hashes from being used else: verbose_logger.warning(