Compare commits

...

2 Commits

Author SHA1 Message Date
982ddef0da Merge pull request '🎨 总结群聊时,不足100条记录的不总结' (#36) from hotfix into main
All checks were successful
BuildImage / build-image (push) Successful in 1m21s
Reviewed-on: #36
2024-04-12 11:40:51 +08:00
99447d332d 🎨 总结群聊时,不足100条记录的不总结 2024-04-12 11:40:40 +08:00

View File

@ -28,10 +28,10 @@ func AiSummary() {
log.Printf("获取群[%s]对话记录失败, 错误信息: %v", group.Wxid, err) log.Printf("获取群[%s]对话记录失败, 错误信息: %v", group.Wxid, err)
continue continue
} }
//if len(records) < 100 { if len(records) < 100 {
// log.Printf("群[%s]对话记录不足100条跳过总结", group.Wxid) log.Printf("群[%s]对话记录不足100条跳过总结", group.Wxid)
// continue continue
//} }
// 组装对话记录为字符串 // 组装对话记录为字符串
var content []string var content []string
for _, record := range records { for _, record := range records {