fix: file input not working after rejecting images

This commit is contained in:
Jun Siang Cheah 2024-05-09 20:47:29 +08:00
parent 584385e4bf
commit 9bc628ca75

View File

@ -559,6 +559,8 @@
if (selectedModel !== undefined) { if (selectedModel !== undefined) {
if (!(selectedModel.custom_info?.vision_capable ?? true)) { if (!(selectedModel.custom_info?.vision_capable ?? true)) {
toast.error($i18n.t('Selected model does not support image inputs.')); toast.error($i18n.t('Selected model does not support image inputs.'));
inputFiles = null;
filesInputElement.value = '';
return; return;
} }
} }