Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(create_key_button.tsx): working ui controls to set guaranteed throughput/best effort throughput on key

Krrish Dholakia20b6f011f7ee
diff --git a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx
index 0ab8b25c1fe..e367565bae0 100644
--- a/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx
+++ b/ui/litellm-dashboard/src/components/organisms/create_key_button.tsx
@@ -820,7 +820,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
</span>
}
name="tpm_limit_type"
- initialValue="default"
+ initialValue={null}
className="mt-4"
>
<Select
@@ -832,7 +832,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
form.setFieldValue('tpm_limit_type', value);
}}
>
- <Option value="default" label="Default">
+ <Option value="best_effort_throughput" label="Default">
<div style={{ padding: '4px 0' }}>
<div style={{ fontWeight: 500 }}>Default</div>
<div style={{ fontSize: '11px', color: '#6b7280', marginTop: '2px' }}>
@@ -891,7 +891,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
</span>
}
name="rpm_limit_type"
- initialValue="default"
+ initialValue={null}
className="mt-4"
>
<Select
@@ -903,7 +903,7 @@ const CreateKey: React.FC<CreateKeyProps> = ({
form.setFieldValue('rpm_limit_type', value);
}}
>
- <Option value="default" label="Default">
+ <Option value="best_effort_throughput" label="Default">
<div style={{ padding: '4px 0' }}>
<div style={{ fontWeight: 500 }}>Default</div>
<div style={{ fontSize: '11px', color: '#6b7280', marginTop: '2px' }}>