Browse Source

fix summarize don't send

sunls233 1 year ago
parent
commit
089e3b8946
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()]
           : [];