diff --git a/web/app/components/header/account-setting/model-provider-page/index.tsx b/web/app/components/header/account-setting/model-provider-page/index.tsx index 41d034569e..e6d3c8e19d 100644 --- a/web/app/components/header/account-setting/model-provider-page/index.tsx +++ b/web/app/components/header/account-setting/model-provider-page/index.tsx @@ -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({