better init self prompt

This commit is contained in:
MaxRobinsonTheGreat 2024-05-16 20:24:50 -05:00
parent 25853aa49b
commit 9869c6bf72

View file

@ -65,8 +65,8 @@ export class Agent {
if (save_data && save_data.self_prompt) { // if we're loading memory and self-prompting was on, restart it, ignore init_message
let prompt = save_data.self_prompt;
if (init_message)
prompt = `${init_message}\n${prompt}`;
// add initial message to history
this.history.add('system', prompt);
this.self_prompter.start(prompt);
}
else if (init_message) {