Merge pull request '🎨 逻辑优化' (#17) from hotfix into main
BuildImage / build-image (push) Successful in 1m36s Details

Reviewed-on: #17
This commit is contained in:
李寻欢 2024-01-25 11:46:30 +08:00
commit 8ff18c3626
1 changed files with 6 additions and 0 deletions

View File

@ -123,6 +123,12 @@ func AI(m *plugin.MessageContext) {
return
}
// 返回消息为空
if resp.Choices[0].Message.Content == "" {
utils.SendMessage(m.FromUser, m.GroupUser, "AI似乎抽风了没有告诉我你需要的回答~", 0)
return
}
// 保存一下AI 返回的消息,消息 Id 使用传入 Id 的负数
var replyMessage entity.Message
replyMessage.MsgId = -m.MsgId