浏览代码

fix: file input not working after rejecting images

Jun Siang Cheah 1 年之前
父节点
当前提交
9bc628ca75
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/lib/components/chat/MessageInput.svelte

+ 2 - 0
src/lib/components/chat/MessageInput.svelte

@@ -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;
 											}
 										}