feat: disable api host edit for system provider
This commit is contained in:
parent
7c322b7536
commit
e3d54c9352
@ -60,11 +60,13 @@ const ProviderSetting: FC<Props> = ({ provider }) => {
|
||||
onChange={(e) => setApiKey(e.target.value)}
|
||||
onBlur={onUpdateApiKey}
|
||||
spellCheck={false}
|
||||
disabled={provider.id === 'ollama'}
|
||||
/>
|
||||
<SettingSubtitle>API Host</SettingSubtitle>
|
||||
<Input
|
||||
value={apiHost}
|
||||
placeholder="API Host"
|
||||
disabled={provider.isSystem}
|
||||
onChange={(e) => setApiHost(e.target.value)}
|
||||
onBlur={onUpdateApiHost}
|
||||
/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user