diff --git a/brainapi.mjs b/brainapi.mjs index c473302..598277c 100644 --- a/brainapi.mjs +++ b/brainapi.mjs @@ -162,7 +162,7 @@ export class ConsciousnessSimulator { // Method to generate emotions using Ollama async updateEmotion() { try { - const emotion = await ollama.chat({ + let emotion = await ollama.chat({ model: 'llama3.2', messages: [{ role: 'assistant', content: ` PROMPT: pick an emotion according to the memory context. @@ -172,7 +172,7 @@ export class ConsciousnessSimulator { ${this.memoryLog}` }] }); console.log(`**EMOTION DEBUG** - ${this.getLastWordLowerCase(emotion.message.content)}`) - const emotion = emotion.message.content.toLowerCase() + emotion = emotion.message.content.toLowerCase() this.currentEmotion = emotion this.logAIContextMemory() await this.updateEmotion()