From fc77e2c820adef613691b28edd76a9aa9a8f507d Mon Sep 17 00:00:00 2001 From: Fork Less Date: Wed, 17 Jun 2026 01:59:18 +0200 Subject: [PATCH] fix: move brevity instruction to front of system prompt where model weights it more --- server/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/hooks.go b/server/hooks.go index aedd3f6..ebf78c5 100644 --- a/server/hooks.go +++ b/server/hooks.go @@ -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",