From 85e28b15a4d0376ecf4702e17136b07eecb68c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Wed, 24 Jul 2024 14:11:14 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/summary/summary.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/summary/summary.go b/tasks/summary/summary.go index 1316b315..ca1727bb 100644 --- a/tasks/summary/summary.go +++ b/tasks/summary/summary.go @@ -74,11 +74,13 @@ func AiSummary() { if err != nil { log.Printf("群聊记录总结失败: %v", err.Error()) + utils.SendMessage(group.Wxid, "", "#昨日消息总结\n\n群聊消息总结失败,错误信息: "+err.Error(), 0) continue } // 返回消息为空 if resp.Choices[0].Message.Content == "" { + utils.SendMessage(group.Wxid, "", "#昨日消息总结\n\n群聊消息总结失败,AI返回结果为空", 0) continue } replyMsg := fmt.Sprintf("#昨日消息总结\n又是一天过去了,让我们一起来看看昨儿群友们都聊了什么有趣的话题吧~\n\n%s", resp.Choices[0].Message.Content)