updated Modelfile and removed message response to discord if there is an error
Some checks failed
Builds / Discord-Node-Build (push) Has been cancelled
Builds / Discord-Ollama-Container-Build (push) Has been cancelled
Coverage / Discord-Node-Coverage (push) Has been cancelled

This commit is contained in:
2025-05-23 11:24:15 -04:00
parent 152c3db941
commit c75aad5d03
2 changed files with 4 additions and 4 deletions

View File

@@ -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, Im having trouble thinking right now. Try again?')
//message.reply('Sorry, Im 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 didnt get that. Can you try again?'
const reply = jsonResponse.reply || 'Huh?'
const replyMessage = await message.reply(reply)
if (isBotMessage) {
try {