The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(proxy_server.py): fix invalid login message to not show passed in pwd
Krrish Dholakia6f8840daa173
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex 5e3a56a8cf6..12069d5e855 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -8066,14 +8066,14 @@ async def login(request: Request):return redirect_responseelse:raise ProxyException(- message=f"Invalid credentials used to access UI. Passed in username: {username}, passed in password: {password}.\nNot valid credentials for {username}",+ message=f"Invalid credentials used to access UI.\nNot valid credentials for {username}",type=ProxyErrorTypes.auth_error,param="invalid_credentials",code=status.HTTP_401_UNAUTHORIZED,)else:raise ProxyException(- message=f"Invalid credentials used to access UI. Passed in username: {username}, passed in password: {password}.\nCheck 'UI_USERNAME', 'UI_PASSWORD' in .env file",+ message="Invalid credentials used to access UI.\nCheck 'UI_USERNAME', 'UI_PASSWORD' in .env file",type=ProxyErrorTypes.auth_error,param="invalid_credentials",code=status.HTTP_401_UNAUTHORIZED,