Update ai.ts
This commit is contained in:
parent
5134446bf0
commit
ffd7ad1fa0
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user