mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-16 06:23:09 +00:00
Merge pull request #2821 from BerriAI/litellm_ui_qa_fixes
[FEAT] UI - simplify creating Keys (clean up form and require a model to be selected on UI)
This commit is contained in:
@@ -129,6 +129,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
||||
<Form.Item
|
||||
label="Team ID"
|
||||
name="team_id"
|
||||
hidden={true}
|
||||
initialValue={team ? team["team_id"] : null}
|
||||
valuePropName="team_id"
|
||||
className="mt-8"
|
||||
@@ -136,7 +137,12 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
||||
<Input value={team ? team["team_alias"] : ""} disabled />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="Models" name="models">
|
||||
<Form.Item
|
||||
label="Models"
|
||||
name="models"
|
||||
rules={[{ required: true, message: 'Please select a model' }]}
|
||||
help="required"
|
||||
>
|
||||
<Select
|
||||
mode="multiple"
|
||||
placeholder="Select models"
|
||||
|
||||
Reference in New Issue
Block a user