mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-22 06:02: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
|
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;
|
let prompt = save_data.self_prompt;
|
||||||
if (init_message)
|
// add initial message to history
|
||||||
prompt = `${init_message}\n${prompt}`;
|
this.history.add('system', prompt);
|
||||||
this.self_prompter.start(prompt);
|
this.self_prompter.start(prompt);
|
||||||
}
|
}
|
||||||
else if (init_message) {
|
else if (init_message) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue