From 06655d0273abea04f5e6c2ac4492b5973bdac014 Mon Sep 17 00:00:00 2001 From: Harshit Jain Date: Fri, 6 Feb 2026 05:43:21 +0530 Subject: [PATCH] remove aberivation to handle wrong api starts without sk --- 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 eb670572a9b..b66f2f3f0ab 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( - abbreviate_api_key(api_key) + f"{api_key[:3]}...{api_key[-4:]}" if len(api_key) > 7 else api_key ) # prevent token hashes from being used else: verbose_logger.warning(