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 entering custom model names for azure

Ishaan Jaff2124c8f12af9
diff --git a/ui/litellm-dashboard/src/components/model_dashboard.tsx b/ui/litellm-dashboard/src/components/model_dashboard.tsx
index bf93e341634..f96916cfd41 100644
--- a/ui/litellm-dashboard/src/components/model_dashboard.tsx
+++ b/ui/litellm-dashboard/src/components/model_dashboard.tsx
@@ -1730,14 +1730,20 @@ const ModelDashboard: React.FC<ModelDashboardProps> = ({
rules={[{ required: true, message: "Required" }]}
noStyle
>
- <MultiSelect>
- <MultiSelectItem value="custom">Custom Model Name (Enter below)</MultiSelectItem>
- {providerModels.map((model, index) => (
- <MultiSelectItem key={index} value={model}>
- {model}
- </MultiSelectItem>
- ))}
- </MultiSelect>
+ { (selectedProvider === Providers.Azure) || (selectedProvider === Providers.OpenAI_Compatible) || (selectedProvider === Providers.Ollama) ? (
+ <TextInput placeholder={getPlaceholder(selectedProvider.toString())} />
+ ) : providerModels.length > 0 ? (
+ <MultiSelect>
+ <MultiSelectItem value="custom">Custom Model Name (Enter below)</MultiSelectItem>
+ {providerModels.map((model, index) => (
+ <MultiSelectItem key={index} value={model}>
+ {model}
+ </MultiSelectItem>
+ ))}
+ </MultiSelect>
+ ) : (
+ <TextInput placeholder={getPlaceholder(selectedProvider.toString())} />
+ )}
</Form.Item>
<Form.Item