Merge pull request #2260 from sunls233/fix-summarize

修复摘要总结后不会被使用
main
Yifei Zhang 2 years ago committed by GitHub
commit 29fd9b23fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save