An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
Fix: Change environment variable from NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY to ENABLE_SAVE_CHAT_HISTORY
Yoshiki Miurad6e5406dca95
diff --git a/lib/streaming/handle-stream-finish.ts b/lib/streaming/handle-stream-finish.tsindex 1398c61e..743294d7 100644--- a/lib/streaming/handle-stream-finish.ts+++ b/lib/streaming/handle-stream-finish.ts@@ -64,7 +64,7 @@ export async function handleStreamFinish({...responseMessages.slice(-1)] as ExtendedCoreMessage[]- if (process.env.NEXT_PUBLIC_ENABLE_SAVE_CHAT_HISTORY !== 'true') {+ if (process.env.ENABLE_SAVE_CHAT_HISTORY !== 'true') {return}