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:
Ishaan Jaff 2024-04-03 18:23:34 -07:00 committed by GitHub
commit 47a456b819
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"