Fix unknown persona detection, bump to v0.1.16
This commit is contained in:
@@ -200,6 +200,10 @@ func (p *Plugin) MessageHasBeenPosted(c *plugin.Context, post *model.Post) {
|
||||
if persona == "" {
|
||||
persona = resolvePersona(cfg.Persona)
|
||||
}
|
||||
// If still empty and the config has a value, use it as-is (legacy fallback).
|
||||
if persona == "" && cfg.Persona != "" {
|
||||
persona = cfg.Persona
|
||||
}
|
||||
systemPrompt := ""
|
||||
if persona != "" {
|
||||
systemPrompt = "You are " + persona + ". Respond in character. Only respond to the latest message — do not re-address earlier messages. Vary your openings and phrasing each time."
|
||||
|
||||
Reference in New Issue
Block a user