mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
fix mutation of model credentials update
This commit is contained in:
parent
ea2862e435
commit
3bc9ddb006
@ -102,11 +102,9 @@ const ModelProviderPage = ({ searchText }: Props) => {
|
|||||||
onSaveCallback: () => {
|
onSaveCallback: () => {
|
||||||
updateModelProviders()
|
updateModelProviders()
|
||||||
|
|
||||||
if (configurationMethod === ConfigurationMethodEnum.predefinedModel) {
|
provider.supported_model_types.forEach((type) => {
|
||||||
provider.supported_model_types.forEach((type) => {
|
updateModelList(type)
|
||||||
updateModelList(type)
|
})
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
if (configurationMethod === ConfigurationMethodEnum.customizableModel && provider.custom_configuration.status === CustomConfigurationStatusEnum.active) {
|
if (configurationMethod === ConfigurationMethodEnum.customizableModel && provider.custom_configuration.status === CustomConfigurationStatusEnum.active) {
|
||||||
eventEmitter?.emit({
|
eventEmitter?.emit({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user