fix prompter logging

This commit is contained in:
Isadora White 2025-03-14 00:35:21 -07:00
parent fa6a5df6da
commit 9c3e726a36

View file

@ -430,7 +430,7 @@ export class Prompter {
async promptMemSaving(to_summarize) {
await this.checkCooldown();
let prompt = this.profile.saving_memory;
let prompt = await this.replaceStrings(prompt, null, null, to_summarize);
let logEntry;
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
if (this.task_id === null) {
@ -440,7 +440,7 @@ export class Prompter {
}
const logFile = `memSaving_${timestamp}.txt`;
await this.saveToFile(logFile, logEntry);
prompt = await this.replaceStrings(prompt, null, null, to_summarize);
return await this.chat_model.sendRequest([], prompt);
}