Update index.tsx

pull/21247/head
Kalo Chin 11 months ago
parent 443b5a33e0
commit 852ac530bf

@ -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({})
} }

Loading…
Cancel
Save