An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
style: apply prettier formatting
Yoshiki Miura11cd06e1ff75
diff --git a/lib/streaming/helpers/prepare-messages.ts b/lib/streaming/helpers/prepare-messages.tsindex a631252c..dcb675b6 100644--- a/lib/streaming/helpers/prepare-messages.ts+++ b/lib/streaming/helpers/prepare-messages.ts@@ -59,7 +59,9 @@ export async function prepareMessages(await deleteMessagesFromIndex(chatId, messageId, userId)// Reload chat to get the updated message list after deletionconst updatedChat = await loadChat(chatId, userId)- return updatedChat?.messages || currentChat.messages.slice(0, messageIndex)+ return (+ updatedChat?.messages || currentChat.messages.slice(0, messageIndex)+ )} else {// User message editif (message && message.id === messageId) {