Merge pull request #2260 from sunls233/fix-summarize

修复摘要总结后不会被使用
This commit is contained in:
Yifei Zhang 2023-07-05 22:28:03 +08:00 committed by GitHub
commit 29fd9b23fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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