Merge pull request #4458 from janhq/fix/mismatch-between-ui-and-model-configs

fix: mismatch NGL number between UI and model settings
This commit is contained in:
Louis 2025-01-15 20:30:08 +07:00 committed by GitHub
commit bde35b46b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,6 +33,11 @@ export const getConfigurationsData = (
componentSetting.controllerProps.max ||
2048
break
case 'ngl':
componentSetting.controllerProps.max =
selectedModel?.settings.ngl ||
componentSetting.controllerProps.max ||
100
}
}
}