Update brainapi.mjs

This commit is contained in:
Arma-Damna-Dillo 2025-02-08 03:29:19 +00:00
parent 437449a16f
commit ea50d760a7

View file

@ -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()