fix: move brevity instruction to front of system prompt where model weights it more
This commit is contained in:
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user