Skip to content

Commit

Permalink
Send the locale to the RAG for chat
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Nov 18, 2024
1 parent 2984df1 commit 7d74936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/rag/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func Query(inst *instance.Instance, logger logger.Logger, query QueryMessage) er
myself, _ := contact.GetMyself(inst)
relatives, _ := getRelatives(inst, myself)
payload := map[string]interface{}{
"locale": inst.Locale,
"messages": chat.Messages,
"myself": myself,
"relatives": relatives,
Expand Down

0 comments on commit 7d74936

Please sign in to comment.