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 = [