strengthen brevity instruction with IMPORTANT/no exceptions framing

This commit is contained in:
2026-06-17 02:02:46 +02:00
parent fc77e2c820
commit 26417d22da
+1 -1
View File
@@ -219,7 +219,7 @@ func (p *Plugin) MessageHasBeenPosted(c *plugin.Context, post *model.Post) {
if personaDesc != "" {
systemPrompt = "You are " + personaDesc + ". Respond in character. Only respond to the latest message — do not re-address earlier messages. Vary your openings and phrasing each time."
if cfg.Brevity != "" && cfg.Brevity != "0" {
systemPrompt = "Reply in " + cfg.Brevity + " sentences or fewer. " + systemPrompt
systemPrompt = "IMPORTANT: Reply in " + cfg.Brevity + " sentences or fewer — no exceptions. " + systemPrompt
}
messages = append([]ChatMessage{{
Role: "system",