mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-21 21:52:07 +02:00
better init self prompt
This commit is contained in:
parent
25853aa49b
commit
9869c6bf72
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue