From 93e4a36300fea160ba8ae1405e8bd80aacef8b02 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 17 Mar 2025 18:11:19 -0700 Subject: [PATCH] DefaultInternalUserParams --- litellm/proxy/_types.py | 8 ++++---- ui/litellm-dashboard/src/components/SSOSettings.tsx | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index 3a66e13dae2..b0f9a77899e 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -2621,7 +2621,7 @@ class TransformRequestBody(BaseModel): class DefaultInternalUserParams(LiteLLMPydanticObjectBase): """ - Default parameters to apply when a new user signs in via SSO + Default parameters to apply when a new user signs in via SSO or is create view /user/new API endpoint """ user_role: Optional[ @@ -2633,15 +2633,15 @@ class DefaultInternalUserParams(LiteLLMPydanticObjectBase): ] ] = Field( default=LitellmUserRoles.INTERNAL_USER, - description="Default role assigned to new users signing in via SSO", + description="Default role assigned to new users created", ) max_budget: Optional[float] = Field( default=None, - description="Default maximum budget (in USD) for new users signing in via SSO", + description="Default maximum budget (in USD) for new users created", ) budget_duration: Optional[str] = Field( default=None, - description="Default budget duration for new users (e.g. '30d', '1mo')", + description="Default budget duration for new users (e.g. 'daily', 'weekly', 'monthly')", ) models: Optional[List[str]] = Field( default=None, description="Default list of models that new users can access" diff --git a/ui/litellm-dashboard/src/components/SSOSettings.tsx b/ui/litellm-dashboard/src/components/SSOSettings.tsx index c39cd46142b..9c62a4d8ce2 100644 --- a/ui/litellm-dashboard/src/components/SSOSettings.tsx +++ b/ui/litellm-dashboard/src/components/SSOSettings.tsx @@ -244,7 +244,6 @@ const SSOSettings: React.FC = ({ accessToken, possibleUIRoles if (!settings) { return ( - SSO Settings No settings available or you don't have permission to view them. ); @@ -286,7 +285,6 @@ const SSOSettings: React.FC = ({ accessToken, possibleUIRoles return (
- SSO Settings {!loading && settings && ( isEditing ? (