fix summarize don't send

This commit is contained in:
sunls233 2023-07-05 14:27:37 +08:00
parent 38f2495cf6
commit 089e3b8946
1 changed files with 1 additions and 1 deletions

View File

@ -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()]
: [];