fix: fix when vision is disabled delete the configs (#30420)

This commit is contained in:
wangxiaolei
2026-01-01 00:40:21 +08:00
committed by GitHub
parent 5b02e5dcb6
commit ae43ad5cb6

View File

@ -49,6 +49,9 @@ const useConfigVision = (model: ModelConfig, {
variable_selector: ['sys', 'files'],
}
}
else if (!enabled) {
delete draft.configs
}
})
onChange(newPayload)
}, [isChatMode, onChange, payload])