mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix: change memory message role from system to user caused by the imcompatibility of anthropic messages api
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user