fix: websearch not working issue

#5672
This commit is contained in:
Timothy J. Baek 2024-09-24 18:25:21 +02:00
parent bf423b8577
commit 525095b3de

View File

@ -1683,8 +1683,12 @@
} }
}; };
const getWebSearchResults = async (model: string, parentId: string, responseId: string) => { const getWebSearchResults = async (
const responseMessage = history.messages[responseId]; model: string,
parentId: string,
responseMessageId: string
) => {
const responseMessage = history.messages[responseMessageId];
const userMessage = history.messages[parentId]; const userMessage = history.messages[parentId];
responseMessage.statusHistory = [ responseMessage.statusHistory = [