From db0ff839ddd9ee0f1c3e46e2f6bc13302895e6cf Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 3 Feb 2025 14:24:30 -0800 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 69ad31aa6..c70d89e7f 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1402,7 +1402,7 @@ const messages = createMessagesList(parentId); // If there are image files, check if model is vision capable const hasImages = messages.some((message) => - message.files?.some((file) => file.type === 'image') + message?.files?.some((file) => file.type === 'image') ); if (hasImages && !(model.info?.meta?.capabilities?.vision ?? true)) {