ui fix entering custom model names for azure

This commit is contained in:
Ishaan Jaff 2024-08-01 09:58:37 -07:00
parent d02d3d9712
commit 457436e12e

View file

@ -1730,6 +1730,9 @@ const ModelDashboard: React.FC<ModelDashboardProps> = ({
rules={[{ required: true, message: "Required" }]} rules={[{ required: true, message: "Required" }]}
noStyle noStyle
> >
{ (selectedProvider === Providers.Azure) || (selectedProvider === Providers.OpenAI_Compatible) || (selectedProvider === Providers.Ollama) ? (
<TextInput placeholder={getPlaceholder(selectedProvider.toString())} />
) : providerModels.length > 0 ? (
<MultiSelect> <MultiSelect>
<MultiSelectItem value="custom">Custom Model Name (Enter below)</MultiSelectItem> <MultiSelectItem value="custom">Custom Model Name (Enter below)</MultiSelectItem>
{providerModels.map((model, index) => ( {providerModels.map((model, index) => (
@ -1738,6 +1741,9 @@ const ModelDashboard: React.FC<ModelDashboardProps> = ({
</MultiSelectItem> </MultiSelectItem>
))} ))}
</MultiSelect> </MultiSelect>
) : (
<TextInput placeholder={getPlaceholder(selectedProvider.toString())} />
)}
</Form.Item> </Form.Item>
<Form.Item <Form.Item