Update ai.ts

This commit is contained in:
Corey Johnson 2025-07-15 16:44:45 -07:00
parent 5134446bf0
commit ffd7ad1fa0

View File

@ -32,8 +32,6 @@ export const respondToUserMessage = async (msg: OmitPartialGroupDMChannel<Messag
msg.channel.sendTyping()
})
console.log(`🌭 sending`, msg.content)
return await respond(msg.content, agent, msg.channel.id, context)
}
@ -68,6 +66,8 @@ const respond = async (
const content = `An error occurred while generating Spike's response: ${error}`
console.error(`💥 ${content}`, error)
history.push(system(content))
console.log(`🌭 sending`, content)
return content
}
}