mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-28 04:04:31 +00:00
build(ui/teams.tsx): allow resetting teams budget
This commit is contained in:
parent
f774033bf9
commit
c6fd17f639
5 changed files with 23 additions and 3 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -261,6 +261,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
|
||||||
>
|
>
|
||||||
<Select defaultValue={null} placeholder="n/a">
|
<Select defaultValue={null} placeholder="n/a">
|
||||||
<Select.Option value="24h">daily</Select.Option>
|
<Select.Option value="24h">daily</Select.Option>
|
||||||
|
<Select.Option value="7d">weekly</Select.Option>
|
||||||
<Select.Option value="30d">monthly</Select.Option>
|
<Select.Option value="30d">monthly</Select.Option>
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
|
@ -151,6 +151,17 @@ const Team: React.FC<TeamProps> = ({
|
||||||
<Form.Item label="Max Budget (USD)" name="max_budget">
|
<Form.Item label="Max Budget (USD)" name="max_budget">
|
||||||
<InputNumber step={0.01} precision={2} width={200} />
|
<InputNumber step={0.01} precision={2} width={200} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
className="mt-8"
|
||||||
|
label="Reset Budget"
|
||||||
|
name="budget_duration"
|
||||||
|
>
|
||||||
|
<Select2 defaultValue={null} placeholder="n/a">
|
||||||
|
<Select2.Option value="24h">daily</Select2.Option>
|
||||||
|
<Select2.Option value="7d">weekly</Select2.Option>
|
||||||
|
<Select2.Option value="30d">monthly</Select2.Option>
|
||||||
|
</Select2>
|
||||||
|
</Form.Item>
|
||||||
<Form.Item label="Tokens per minute Limit (TPM)" name="tpm_limit">
|
<Form.Item label="Tokens per minute Limit (TPM)" name="tpm_limit">
|
||||||
<InputNumber step={1} width={400} />
|
<InputNumber step={1} width={400} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
@ -635,6 +646,17 @@ const Team: React.FC<TeamProps> = ({
|
||||||
<Form.Item label="Max Budget (USD)" name="max_budget">
|
<Form.Item label="Max Budget (USD)" name="max_budget">
|
||||||
<InputNumber step={0.01} precision={2} width={200} />
|
<InputNumber step={0.01} precision={2} width={200} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
className="mt-8"
|
||||||
|
label="Reset Budget"
|
||||||
|
name="budget_duration"
|
||||||
|
>
|
||||||
|
<Select2 defaultValue={null} placeholder="n/a">
|
||||||
|
<Select2.Option value="24h">daily</Select2.Option>
|
||||||
|
<Select2.Option value="7d">weekly</Select2.Option>
|
||||||
|
<Select2.Option value="30d">monthly</Select2.Option>
|
||||||
|
</Select2>
|
||||||
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="Tokens per minute Limit (TPM)"
|
label="Tokens per minute Limit (TPM)"
|
||||||
name="tpm_limit"
|
name="tpm_limit"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue