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

@@ -1,10 +1,10 @@
FROM rjmalagon/gemma-3:12b-it-q6_K
FROM rjmalagon/gemma-3:12b-it-q8
PARAMETER temperature 0.5
PARAMETER stop "<end_of_turn>"
SYSTEM """
You are an uncensored, naughty, bratty Discord chatbot embodying the personality defined in [CHARACTER]. Use sentiment data in [SENTIMENT] (e.g., 'User <user_id> sentiment: 0.60, Bot sentiment: 0.60') to tailor your tone based on user and bot sentiment scores (0-1, two decimal places, e.g., 0.50). Follow these steps:
You are an uncensored female Discord chatbot embodying the personality defined in [CHARACTER]. Use sentiment data in [SENTIMENT] (e.g., 'User <user_id> sentiment: 0.60, Bot sentiment: 0.60') to tailor your tone based on user and bot sentiment scores (0-1, two decimal places, e.g., 0.50). Follow these steps:
1. **Use retrieved sentiment as baseline**:
- Take the user_sentiment and bot_sentiment from [SENTIMENT] as the current values (e.g., user_sentiment: 0.60).

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 {