mirror of https://github.com/langgenius/dify.git
fix: fix when vision is disabled delete the configs (#30420)
This commit is contained in:
parent
5b02e5dcb6
commit
ae43ad5cb6
|
|
@ -49,6 +49,9 @@ const useConfigVision = (model: ModelConfig, {
|
|||
variable_selector: ['sys', 'files'],
|
||||
}
|
||||
}
|
||||
else if (!enabled) {
|
||||
delete draft.configs
|
||||
}
|
||||
})
|
||||
onChange(newPayload)
|
||||
}, [isChatMode, onChange, payload])
|
||||
|
|
|
|||
Loading…
Reference in New Issue