From 9bc628ca751d016e7cbf5ceffd57ce3cb0e14125 Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Thu, 9 May 2024 20:47:29 +0800 Subject: [PATCH] fix: file input not working after rejecting images --- src/lib/components/chat/MessageInput.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index a43021fb6..1a19e4bb4 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/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; } }