Skip to content

Commit

Permalink
add response judgment conditions for summarizing messages request
Browse files Browse the repository at this point in the history
  • Loading branch information
code-october committed Oct 3, 2024
1 parent 7fa8234 commit a039690
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/store/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ export const useChatStore = createPersistStore(
},
onFinish(message) {
console.log("[Memory] ", message);
if (!isValidMessage(message)) return;
get().updateCurrentSession((session) => {
session.lastSummarizeIndex = lastSummarizeIndex;
session.memoryPrompt = message; // Update the memory prompt for stored it in local storage
Expand Down

0 comments on commit a039690

Please sign in to comment.