hotfix #68

Merged
李寻欢 merged 3 commits from hotfix into main 2024-07-05 09:44:42 +08:00
Showing only changes of commit 9e8c3f5e6f - Show all commits

View File

@ -137,7 +137,7 @@ func AI(m *plugin.MessageContext) {
}
// 返回消息为空
if resp.Choices[0].Message.Content == "" {
if len(resp.Choices) == 0 || resp.Choices[0].Message.Content == "" {
utils.SendMessage(m.FromUser, m.GroupUser, "AI似乎抽风了没有告诉我你需要的回答~", 0)
return
}