mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
DefaultInternalUserParams
This commit is contained in:
parent
5d8b288570
commit
93e4a36300
2 changed files with 4 additions and 6 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -244,7 +244,6 @@ const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles
|
|||
if (!settings) {
|
||||
return (
|
||||
<Card>
|
||||
<Title>SSO Settings</Title>
|
||||
<Text>No settings available or you don't have permission to view them.</Text>
|
||||
</Card>
|
||||
);
|
||||
|
|
@ -286,7 +285,6 @@ const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles
|
|||
return (
|
||||
<Card>
|
||||
<div className="flex justify-between items-center mb-4">
|
||||
<Title>SSO Settings</Title>
|
||||
{!loading && settings && (
|
||||
isEditing ? (
|
||||
<div className="flex gap-2">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue