mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 18:25:22 +00:00
(feat) make key/team name required on UI
This commit is contained in:
@@ -124,7 +124,11 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
||||
>
|
||||
{userRole === "App Owner" || userRole === "Admin" ? (
|
||||
<>
|
||||
<Form.Item label="Key Name" name="key_alias">
|
||||
<Form.Item
|
||||
label="Key Name"
|
||||
name="key_alias"
|
||||
rules={[{ required: true, message: 'Please input a key name' }]}
|
||||
>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
@@ -149,9 +153,6 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
||||
))}
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<Form.Item label="Soft Budget (USD) Monthly" name="soft_budget" initialValue={50.00}>
|
||||
<InputNumber step={0.01} precision={2} defaultValue={50.00} width={200} />
|
||||
</Form.Item>
|
||||
<Form.Item label="Max Budget (USD)" name="max_budget">
|
||||
<InputNumber step={0.01} precision={2} width={200} />
|
||||
</Form.Item>
|
||||
|
||||
@@ -235,7 +235,11 @@ const Team: React.FC<TeamProps> = ({
|
||||
labelAlign="left"
|
||||
>
|
||||
<>
|
||||
<Form.Item label="Team Name" name="team_alias">
|
||||
<Form.Item
|
||||
label="Team Name"
|
||||
name="team_alias"
|
||||
rules={[{ required: true, message: 'Please input a team name' }]}
|
||||
>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
<Form.Item label="Models" name="models">
|
||||
|
||||
Reference in New Issue
Block a user