forked from XiaoMo/ChatGPT-Next-Web
Merge pull request #3369 from H0llyW00dzZ/chatz
This commit is contained in:
commit
ce1715c79e
@ -557,7 +557,10 @@ export const useChatStore = createPersistStore(
|
|||||||
},
|
},
|
||||||
onFinish(message) {
|
onFinish(message) {
|
||||||
console.log("[Memory] ", message);
|
console.log("[Memory] ", message);
|
||||||
session.lastSummarizeIndex = lastSummarizeIndex;
|
get().updateCurrentSession((session) => {
|
||||||
|
session.lastSummarizeIndex = lastSummarizeIndex;
|
||||||
|
session.memoryPrompt = message; // Update the memory prompt for stored it in local storage
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onError(err) {
|
onError(err) {
|
||||||
console.error("[Summarize] ", err);
|
console.error("[Summarize] ", err);
|
||||||
|
Loading…
Reference in New Issue
Block a user