Explorar o código

Merge pull request #2260 from sunls233/fix-summarize

修复摘要总结后不会被使用
Yifei Zhang hai 1 ano
pai
achega
29fd9b23fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()]
           : [];