Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#3369 from H0llyW00dzZ/chatz
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored Nov 27, 2023
2 parents a62ab3c + ef9e86b commit ce1715c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/store/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ce1715c

Please sign in to comment.