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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

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])