forked from phoenix/litellm-mirror
ui fix entering custom model names for azure
This commit is contained in:
parent
d02d3d9712
commit
457436e12e
1 changed files with 14 additions and 8 deletions
|
@ -1730,14 +1730,20 @@ const ModelDashboard: React.FC<ModelDashboardProps> = ({
|
||||||
rules={[{ required: true, message: "Required" }]}
|
rules={[{ required: true, message: "Required" }]}
|
||||||
noStyle
|
noStyle
|
||||||
>
|
>
|
||||||
<MultiSelect>
|
{ (selectedProvider === Providers.Azure) || (selectedProvider === Providers.OpenAI_Compatible) || (selectedProvider === Providers.Ollama) ? (
|
||||||
<MultiSelectItem value="custom">Custom Model Name (Enter below)</MultiSelectItem>
|
<TextInput placeholder={getPlaceholder(selectedProvider.toString())} />
|
||||||
{providerModels.map((model, index) => (
|
) : providerModels.length > 0 ? (
|
||||||
<MultiSelectItem key={index} value={model}>
|
<MultiSelect>
|
||||||
{model}
|
<MultiSelectItem value="custom">Custom Model Name (Enter below)</MultiSelectItem>
|
||||||
</MultiSelectItem>
|
{providerModels.map((model, index) => (
|
||||||
))}
|
<MultiSelectItem key={index} value={model}>
|
||||||
</MultiSelect>
|
{model}
|
||||||
|
</MultiSelectItem>
|
||||||
|
))}
|
||||||
|
</MultiSelect>
|
||||||
|
) : (
|
||||||
|
<TextInput placeholder={getPlaceholder(selectedProvider.toString())} />
|
||||||
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue