Skip to content

Commit

Permalink
Use the myself record on the IA chat
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Oct 8, 2024
1 parent d5ca909 commit 4c69310
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model/rag/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"net/url"
"time"

"github.com/cozy/cozy-stack/model/contact"
"github.com/cozy/cozy-stack/model/instance"
"github.com/cozy/cozy-stack/model/job"
"github.com/cozy/cozy-stack/pkg/consts"
Expand Down Expand Up @@ -126,8 +127,10 @@ func Query(inst *instance.Instance, logger logger.Logger, query QueryMessage) er
if err != nil {
return err
}
myself, _ := contact.GetMyself(inst)
payload := map[string]interface{}{
"messages": chat.Messages,
"myself": myself,
"stream": true,
}

Expand Down

0 comments on commit 4c69310

Please sign in to comment.