updated Modelfile and removed message response to discord if there is an error
This commit is contained in:
@@ -359,7 +359,7 @@ export default event(Events.MessageCreate, async ({ log, msgHist, ollama, client
|
||||
}
|
||||
} catch (error) {
|
||||
log(`Failed to parse model response: ${error}`)
|
||||
message.reply('Sorry, I’m having trouble thinking right now. Try again?')
|
||||
//message.reply('Sorry, I’m having trouble thinking right now. Try again?')
|
||||
msgHist.pop()
|
||||
return
|
||||
}
|
||||
@@ -402,7 +402,7 @@ export default event(Events.MessageCreate, async ({ log, msgHist, ollama, client
|
||||
}
|
||||
|
||||
// Send reply to Discord and mark as bot response
|
||||
const reply = jsonResponse.reply || 'Sorry, I didn’t get that. Can you try again?'
|
||||
const reply = jsonResponse.reply || 'Huh?'
|
||||
const replyMessage = await message.reply(reply)
|
||||
if (isBotMessage) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user