浏览代码

fix: hot fix for data migration

Yidadaa 1 年之前
父节点
当前提交
6419ce345f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/store/chat.ts

+ 1 - 1
app/store/chat.ts

@@ -63,7 +63,7 @@ export const BOT_HELLO: Message = createMessage({
 
 function createEmptySession(): ChatSession {
   return {
-    id: Date.now(),
+    id: Date.now() + Math.random(),
     topic: DEFAULT_TOPIC,
     memoryPrompt: "",
     messages: [],