fix: change memory message role from system to user caused by the imcompatibility of anthropic messages api

This commit is contained in:
Acbox
2026-02-20 15:19:24 +08:00
parent d82b6fdeeb
commit ab84e29dde
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -1102,7 +1102,7 @@ func (r *Resolver) loadMemoryContextMessage(ctx context.Context, req conversatio
return nil
}
msg := conversation.ModelMessage{
Role: "system",
Role: "user",
Content: conversation.NewTextContent(payload),
}
return &msg