mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-06-09 10:45:56 +02:00
update prompted to log memSaving better
This commit is contained in:
parent
fce23becb2
commit
c01cea4062
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue