From 525095b3de047748c8e145bebd8306e9bb38f339 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 24 Sep 2024 18:25:21 +0200 Subject: [PATCH] fix: websearch not working issue #5672 --- src/lib/components/chat/Chat.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 4e521f789..af037851a 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1683,8 +1683,12 @@ } }; - const getWebSearchResults = async (model: string, parentId: string, responseId: string) => { - const responseMessage = history.messages[responseId]; + const getWebSearchResults = async ( + model: string, + parentId: string, + responseMessageId: string + ) => { + const responseMessage = history.messages[responseMessageId]; const userMessage = history.messages[parentId]; responseMessage.statusHistory = [