Update brainapi.mjs
This commit is contained in:
parent
437449a16f
commit
ea50d760a7
1 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ export class ConsciousnessSimulator {
|
||||||
// Method to generate emotions using Ollama
|
// Method to generate emotions using Ollama
|
||||||
async updateEmotion() {
|
async updateEmotion() {
|
||||||
try {
|
try {
|
||||||
const emotion = await ollama.chat({
|
let emotion = await ollama.chat({
|
||||||
model: 'llama3.2',
|
model: 'llama3.2',
|
||||||
messages: [{ role: 'assistant', content: `
|
messages: [{ role: 'assistant', content: `
|
||||||
PROMPT: pick an emotion according to the memory context.
|
PROMPT: pick an emotion according to the memory context.
|
||||||
|
@ -172,7 +172,7 @@ export class ConsciousnessSimulator {
|
||||||
${this.memoryLog}` }]
|
${this.memoryLog}` }]
|
||||||
});
|
});
|
||||||
console.log(`**EMOTION DEBUG** - ${this.getLastWordLowerCase(emotion.message.content)}`)
|
console.log(`**EMOTION DEBUG** - ${this.getLastWordLowerCase(emotion.message.content)}`)
|
||||||
const emotion = emotion.message.content.toLowerCase()
|
emotion = emotion.message.content.toLowerCase()
|
||||||
this.currentEmotion = emotion
|
this.currentEmotion = emotion
|
||||||
this.logAIContextMemory()
|
this.logAIContextMemory()
|
||||||
await this.updateEmotion()
|
await this.updateEmotion()
|
||||||
|
|
Loading…
Reference in a new issue