From 8843898a8c9aefe06457708879d3702ca1063215 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 22 Aug 2024 00:03:58 +0200 Subject: [PATCH] fix: older many model chat compatibility --- src/lib/components/chat/Messages/MultiResponseMessages.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/MultiResponseMessages.svelte b/src/lib/components/chat/Messages/MultiResponseMessages.svelte index 212bd8866..7f0991751 100644 --- a/src/lib/components/chat/Messages/MultiResponseMessages.svelte +++ b/src/lib/components/chat/Messages/MultiResponseMessages.svelte @@ -211,7 +211,7 @@ {#if !readOnly && isLastMessage} {#if !Object.keys(groupedMessages).find((modelIdx) => { const { messages } = groupedMessages[modelIdx]; - return !messages[groupedMessagesIdx[modelIdx]].done; + return !messages[groupedMessagesIdx[modelIdx]]?.done ?? false; })}