update prompted to log memSaving better

This commit is contained in:
Isadora White 2025-04-02 15:31:06 -07:00
parent fce23becb2
commit c01cea4062

View file

@ -379,7 +379,7 @@ export class Prompter {
let prompt = this.profile.saving_memory; let prompt = this.profile.saving_memory;
prompt = await this.replaceStrings(prompt, null, null, to_summarize); prompt = await this.replaceStrings(prompt, null, null, to_summarize);
let resp = await this.chat_model.sendRequest([], prompt); 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('</think>')) { if (resp?.includes('</think>')) {
const [_, afterThink] = resp.split('</think>') const [_, afterThink] = resp.split('</think>')
resp = afterThink resp = afterThink