forked from phoenix/litellm-mirror
ui - simplify create key form
This commit is contained in:
parent
82c19da006
commit
29f2459151
1 changed files with 7 additions and 1 deletions
|
@ -129,6 +129,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="Team ID"
|
label="Team ID"
|
||||||
name="team_id"
|
name="team_id"
|
||||||
|
hidden={true}
|
||||||
initialValue={team ? team["team_id"] : null}
|
initialValue={team ? team["team_id"] : null}
|
||||||
valuePropName="team_id"
|
valuePropName="team_id"
|
||||||
className="mt-8"
|
className="mt-8"
|
||||||
|
@ -136,7 +137,12 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
||||||
<Input value={team ? team["team_alias"] : ""} disabled />
|
<Input value={team ? team["team_alias"] : ""} disabled />
|
||||||
</Form.Item>
|
</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
|
<Select
|
||||||
mode="multiple"
|
mode="multiple"
|
||||||
placeholder="Select models"
|
placeholder="Select models"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue