forked from phoenix/litellm-mirror
fix - adding azure on admin ui
This commit is contained in:
parent
a06a0e7b81
commit
96c75c0945
1 changed files with 10 additions and 11 deletions
|
@ -476,20 +476,19 @@ const ModelDashboard: React.FC<ModelDashboardProps> = ({
|
||||||
<Col span={10}><Text className="mb-3 mt-1">Model name your users will pass in.</Text></Col>
|
<Col span={10}><Text className="mb-3 mt-1">Model name your users will pass in.</Text></Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Form.Item rules={[{ required: true, message: 'Required' }]} label="LiteLLM Model Name(s)" name="model" tooltip="Actual model name used for making litellm.completion() call." className="mb-0">
|
<Form.Item rules={[{ required: true, message: 'Required' }]} label="LiteLLM Model Name(s)" name="model" tooltip="Actual model name used for making litellm.completion() call." className="mb-0">
|
||||||
{
|
{selectedProvider === Providers.Azure ? (
|
||||||
providerModels.length > 0 ?
|
<TextInput placeholder="Enter model name" />
|
||||||
<MultiSelect value={providerModels}>
|
) : providerModels.length > 0 ? (
|
||||||
{providerModels.map((model, index) => (
|
<MultiSelect value={providerModels}>
|
||||||
<MultiSelectItem
|
{providerModels.map((model, index) => (
|
||||||
key={index}
|
<MultiSelectItem key={index} value={model}>
|
||||||
value={model}
|
|
||||||
>
|
|
||||||
{model}
|
{model}
|
||||||
</MultiSelectItem>
|
</MultiSelectItem>
|
||||||
))}
|
))}
|
||||||
</MultiSelect>
|
</MultiSelect>
|
||||||
: <TextInput placeholder="gpt-3.5-turbo-0125"/>
|
) : (
|
||||||
}
|
<TextInput placeholder="gpt-3.5-turbo-0125" />
|
||||||
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Row>
|
<Row>
|
||||||
<Col span={10}></Col>
|
<Col span={10}></Col>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue