|
@@ -557,7 +557,10 @@ export const useChatStore = createPersistStore(
|
|
|
},
|
|
|
onFinish(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) {
|
|
|
console.error("[Summarize] ", err);
|