浏览代码

fix summarize don't send

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

+ 1 - 1
app/store/chat.ts

@@ -420,7 +420,7 @@ export const useChatStore = create<ChatStore>()(
           modelConfig.sendMemory &&
           session.memoryPrompt &&
           session.memoryPrompt.length > 0 &&
-          session.lastSummarizeIndex <= clearContextIndex;
+          session.lastSummarizeIndex > clearContextIndex;
         const longTermMemoryPrompts = shouldSendLongTermMemory
           ? [get().getMemoryPrompt()]
           : [];