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(auth): document /user/new password rejection and format password_policy
Oliver Jensene2ea7e97a583
diff --git a/litellm/proxy/auth/password_policy.py b/litellm/proxy/auth/password_policy.pyindex 80c3ebeedca..84680fa9020 100644--- a/litellm/proxy/auth/password_policy.py+++ b/litellm/proxy/auth/password_policy.py@@ -151,8 +151,7 @@ async def validate_password_not_breached(returnraise ProxyException(message=(- "This password appears in known data breaches and cannot be used. "- "Please choose a different password."+ "This password appears in known data breaches and cannot be used. Please choose a different password."),type=ProxyErrorTypes.validation_error,param="password",diff --git a/litellm/proxy/management_endpoints/internal_user_endpoints.py b/litellm/proxy/management_endpoints/internal_user_endpoints.pyindex f22bad70817..409877bdc6f 100644--- a/litellm/proxy/management_endpoints/internal_user_endpoints.py+++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py@@ -495,6 +495,7 @@ async def new_user(- prompts: Optional[List[str]] - List of allowed prompts for the user. If specified, the user will only be able to use these specific prompts.- organizations: List[str] - List of organization id's the user is a member of- budget_limits: Optional[list] - List of concurrent budget windows for the user. Each window specifies a budget_limit, time_period, and optional budget_duration. Example - [{"budget_limit": 10.0, "time_period": "1d"}, {"budget_limit": 50.0, "time_period": "7d"}].+ - password: Optional[str] - Not supported; any value is rejected with a 422. Users set their own password through an invitation link (POST /invitation/new).Returns:- key: (str) The generated api key for the user- expires: (datetime) Datetime object for when key expires.