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>
|
||||
</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">
|
||||
{
|
||||
providerModels.length > 0 ?
|
||||
{selectedProvider === Providers.Azure ? (
|
||||
<TextInput placeholder="Enter model name" />
|
||||
) : providerModels.length > 0 ? (
|
||||
<MultiSelect value={providerModels}>
|
||||
{providerModels.map((model, index) => (
|
||||
<MultiSelectItem
|
||||
key={index}
|
||||
value={model}
|
||||
>
|
||||
<MultiSelectItem key={index} value={model}>
|
||||
{model}
|
||||
</MultiSelectItem>
|
||||
))}
|
||||
</MultiSelect>
|
||||
: <TextInput placeholder="gpt-3.5-turbo-0125"/>
|
||||
}
|
||||
) : (
|
||||
<TextInput placeholder="gpt-3.5-turbo-0125" />
|
||||
)}
|
||||
</Form.Item>
|
||||
<Row>
|
||||
<Col span={10}></Col>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue