|
|
|
@ -456,7 +456,6 @@ const Configuration: FC = () => {
|
|
|
|
enabled: supportVision,
|
|
|
|
enabled: supportVision,
|
|
|
|
}, true)
|
|
|
|
}, true)
|
|
|
|
|
|
|
|
|
|
|
|
// merge and keep only valid completion params for the new model
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const { params: filtered, removedDetails } = await fetchAndMergeValidCompletionParams(
|
|
|
|
const { params: filtered, removedDetails } = await fetchAndMergeValidCompletionParams(
|
|
|
|
provider,
|
|
|
|
provider,
|
|
|
|
@ -468,7 +467,6 @@ const Configuration: FC = () => {
|
|
|
|
setCompletionParams(filtered)
|
|
|
|
setCompletionParams(filtered)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (e) {
|
|
|
|
catch (e) {
|
|
|
|
// if fetch fails just clear invalid params
|
|
|
|
|
|
|
|
Toast.notify({ type: 'error', message: t('common.error') })
|
|
|
|
Toast.notify({ type: 'error', message: t('common.error') })
|
|
|
|
setCompletionParams({})
|
|
|
|
setCompletionParams({})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|