Skip to content

Commit 1e82127

Browse files
authored
fix: duplicated usernames in recaps (#155)
1 parent 8f6127b commit 1e82127

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/models/chathistories/recap.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ func (m *Model) summarizeChatHistories(messageIDs []int64, llmFriendlyChatHistor
132132

133133
// limit key ids to 5
134134
for _, o := range outputs {
135+
o.ParticipantsNamesWithoutUsername = lo.Uniq(o.ParticipantsNamesWithoutUsername)
136+
135137
for _, d := range o.Discussion {
136138
d.KeyIDs = lo.UniqBy(d.KeyIDs, func(item int64) int64 {
137139
return item

0 commit comments

Comments
 (0)