fix: move brevity instruction to front of system prompt where model weights it more

This commit is contained in:
2026-06-17 01:59:18 +02:00
parent 0abba2bf44
commit fc77e2c820
+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 = "Reply in " + cfg.Brevity + " sentences or fewer. " + systemPrompt
}
messages = append([]ChatMessage{{
Role: "system",