diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index 9240d84db83..6106f69ea65 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -395,10 +395,8 @@ async def check_api_key_for_custom_headers_or_pass_through_endpoints( endpoint.get("custom_auth_parser") is not None and endpoint.get("custom_auth_parser") == "langfuse" ): - """ - - langfuse returns {'Authorization': 'Basic YW55dGhpbmc6YW55dGhpbmc'} - - check the langfuse public key if it contains the litellm api key - """ + # langfuse returns {'Authorization': 'Basic '} + # check the langfuse public key if it contains the litellm api key import base64 api_key = api_key.replace("Basic ", "").strip()