mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
UI - create keys limited to specific routes
This commit is contained in:
parent
62e5559e0a
commit
1d35b7543a
1 changed files with 15 additions and 1 deletions
|
@ -319,7 +319,21 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
|||
>
|
||||
<TextInput placeholder="" />
|
||||
</Form.Item>
|
||||
<Form.Item label="Metadata" name="metadata">
|
||||
|
||||
<Form.Item
|
||||
className="mt-8"
|
||||
label="Allowed Routes"
|
||||
name="permissions"
|
||||
|
||||
help={`Select routes this key is allowed to access`}
|
||||
>
|
||||
<Select defaultValue={null} placeholder="n/a" mode="multiple" defaultValue={['get_spend_routes', 'llm_routes']}>
|
||||
<Select.Option value="get_spend_routes">Spend Reporting Routes (/global/spend/report, etc) </Select.Option>
|
||||
<Select.Option value="llm_routes">LLM routes (/chat, /completions, /embeddings)</Select.Option>
|
||||
</Select>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="Metadata" name="metadata" className="mt-8">
|
||||
<Input.TextArea
|
||||
rows={4}
|
||||
placeholder="Enter metadata as JSON"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue