mirror of
https://github.com/open-webui/open-webui
synced 2024-11-27 14:32:32 +00:00
fix: file input not working after rejecting images
This commit is contained in:
parent
584385e4bf
commit
9bc628ca75
@ -559,6 +559,8 @@
|
||||
if (selectedModel !== undefined) {
|
||||
if (!(selectedModel.custom_info?.vision_capable ?? true)) {
|
||||
toast.error($i18n.t('Selected model does not support image inputs.'));
|
||||
inputFiles = null;
|
||||
filesInputElement.value = '';
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user