1
0
forked from lxh/go-wxhelper

🐛 Fix a bug.

This commit is contained in:
李寻欢 2024-05-14 15:57:31 +08:00
parent aa78f3940c
commit 16838ff80f

View File

@ -54,7 +54,7 @@ func AI(m *plugin.MessageContext) {
// 组装消息体 // 组装消息体
messages := make([]openai.ChatCompletionMessage, 0) messages := make([]openai.ChatCompletionMessage, 0)
if config.Conf.Ai.Personality != "" { if prompt != "" {
// 填充人设 // 填充人设
messages = append(messages, openai.ChatCompletionMessage{ messages = append(messages, openai.ChatCompletionMessage{
Role: openai.ChatMessageRoleSystem, Role: openai.ChatMessageRoleSystem,