Browse Source

Merge pull request #2260 from sunls233/fix-summarize

修复摘要总结后不会被使用
Yifei Zhang 1 year ago
parent
commit
29fd9b23fe
1 changed files with 1 additions and 1 deletions
  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()]
           : [];