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
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue