mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix: fix when vision is disabled delete the configs (#30420)
This commit is contained in:
@ -49,6 +49,9 @@ const useConfigVision = (model: ModelConfig, {
|
||||
variable_selector: ['sys', 'files'],
|
||||
}
|
||||
}
|
||||
else if (!enabled) {
|
||||
delete draft.configs
|
||||
}
|
||||
})
|
||||
onChange(newPayload)
|
||||
}, [isChatMode, onChange, payload])
|
||||
|
||||
Reference in New Issue
Block a user