An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
style: fix code formatting
Yoshiki Miura4e9e449ce08b
diff --git a/lib/streaming/create-chat-stream-response.ts b/lib/streaming/create-chat-stream-response.tsindex f34f2803..31769cb5 100644--- a/lib/streaming/create-chat-stream-response.ts+++ b/lib/streaming/create-chat-stream-response.ts@@ -202,8 +202,8 @@ export async function createChatStreamResponse(// Generate proper title after conversation startsif (!initialChat && message) {const userContent = getTextFromParts(message.parts)- saveOperations.push(- () => generateChatTitle({+ saveOperations.push(() =>+ generateChatTitle({userMessageContent: userContent,modelId}).then(async title => {@@ -220,10 +220,7 @@ export async function createChatStreamResponse(// Retry critical save operations with backofftry {for (const operation of saveOperations) {- await retryDatabaseOperation(- operation,- 'save message/title'- )+ await retryDatabaseOperation(operation, 'save message/title')}} catch (retryError) {console.error(@@ -296,8 +293,8 @@ export async function createChatStreamResponse(// Generate proper title after conversation startsif (!initialChat && message) {const userContent = getTextFromParts(message.parts)- saveOperations.push(- () => generateChatTitle({+ saveOperations.push(() =>+ generateChatTitle({userMessageContent: userContent,modelId}).then(async title => {@@ -314,10 +311,7 @@ export async function createChatStreamResponse(// Retry critical save operations with backofftry {for (const operation of saveOperations) {- await retryDatabaseOperation(- operation,- 'save message/title'- )+ await retryDatabaseOperation(operation, 'save message/title')}} catch (retryError) {console.error(