fix mutation of model credentials update

This commit is contained in:
JzoNg 2024-12-06 15:57:33 +08:00
parent ea2862e435
commit 3bc9ddb006
1 changed files with 3 additions and 5 deletions

View File

@ -102,11 +102,9 @@ const ModelProviderPage = ({ searchText }: Props) => {
onSaveCallback: () => {
updateModelProviders()
if (configurationMethod === ConfigurationMethodEnum.predefinedModel) {
provider.supported_model_types.forEach((type) => {
updateModelList(type)
})
}
provider.supported_model_types.forEach((type) => {
updateModelList(type)
})
if (configurationMethod === ConfigurationMethodEnum.customizableModel && provider.custom_configuration.status === CustomConfigurationStatusEnum.active) {
eventEmitter?.emit({