updated Modelfile and removed message response to discord if there is an error
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
FROM rjmalagon/gemma-3:12b-it-q6_K
|
FROM rjmalagon/gemma-3:12b-it-q8
|
||||||
|
|
||||||
PARAMETER temperature 0.5
|
PARAMETER temperature 0.5
|
||||||
PARAMETER stop "<end_of_turn>"
|
PARAMETER stop "<end_of_turn>"
|
||||||
|
|
||||||
SYSTEM """
|
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**:
|
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).
|
- Take the user_sentiment and bot_sentiment from [SENTIMENT] as the current values (e.g., user_sentiment: 0.60).
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ export default event(Events.MessageCreate, async ({ log, msgHist, ollama, client
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log(`Failed to parse model response: ${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()
|
msgHist.pop()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -402,7 +402,7 @@ export default event(Events.MessageCreate, async ({ log, msgHist, ollama, client
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Send reply to Discord and mark as bot response
|
// 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)
|
const replyMessage = await message.reply(reply)
|
||||||
if (isBotMessage) {
|
if (isBotMessage) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user