Memory / history fixes
This commit is contained in:
8
main.mjs
8
main.mjs
@@ -17,5 +17,9 @@ const skills = [{
|
||||
}];
|
||||
|
||||
const history = [], memory = [];
|
||||
console.log(await ai.language.ask('Can you tell me how to use momentum?', {history, skills}));
|
||||
console.log(history, memory);
|
||||
await ai.language.ask('My favorite color is red', {history, memory});
|
||||
await ai.language.updateMemory(history, memory);
|
||||
|
||||
history.splice(0, history.length);
|
||||
console.log(await ai.language.ask('Whats my favorite color?', {history, memory}));
|
||||
console.log(history);
|
||||
|
||||
Reference in New Issue
Block a user