Commit 9bc628ca authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

fix: file input not working after rejecting images

parent 584385e4
...@@ -559,6 +559,8 @@ ...@@ -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;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment