diff --git a/src/models/prompter.js b/src/models/prompter.js index b4c9ee2..23e0ec7 100644 --- a/src/models/prompter.js +++ b/src/models/prompter.js @@ -379,7 +379,7 @@ export class Prompter { let prompt = this.profile.saving_memory; prompt = await this.replaceStrings(prompt, null, null, to_summarize); let resp = await this.chat_model.sendRequest([], prompt); - await this._saveLog(prompt, null, resp, 'memSaving'); + await this._saveLog(prompt, to_summarize, resp, 'memSaving'); if (resp?.includes('')) { const [_, afterThink] = resp.split('') resp = afterThink