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]

ui - fix infinite scroll on test key page (#10343)

Ishaan Jaff9ab9744fac15
diff --git a/ui/litellm-dashboard/src/components/chat_ui.tsx b/ui/litellm-dashboard/src/components/chat_ui.tsx
index bb4b088324e..4c5ee3af82b 100644
--- a/ui/litellm-dashboard/src/components/chat_ui.tsx
+++ b/ui/litellm-dashboard/src/components/chat_ui.tsx
@@ -451,11 +451,13 @@ const ChatUI: React.FC<ChatUIProps> = ({
placeholder="Select a Model"
onChange={onModelChange}
options={[
- ...modelInfo.map((option) => ({
- value: option.model_group,
- label: option.model_group
- })),
- { value: 'custom', label: 'Enter custom model' }
+ ...Array.from(new Set(modelInfo.map(option => option.model_group)))
+ .map((model_group, index) => ({
+ value: model_group,
+ label: model_group,
+ key: index
+ })),
+ { value: 'custom', label: 'Enter custom model', key: 'custom' }
]}
style={{ width: "100%" }}
showSearch={true}