Browse Source

refac: filter out images

Timothy Jaeryang Baek 5 months ago
parent
commit
af518cacbf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/chat/MessageInput.svelte

+ 1 - 1
src/lib/components/chat/MessageInput.svelte

@@ -86,7 +86,7 @@
 
 	$: onChange({
 		prompt,
-		files,
+		files: files.filter((file) => file.type !== 'image'),
 		selectedToolIds,
 		imageGenerationEnabled,
 		webSearchEnabled,