1
0
forked from lxh/go-wxhelper

🐛 修复人设没传进去的BUG

This commit is contained in:
李寻欢 2023-11-17 10:05:18 +08:00
parent 6c2bf3fc9c
commit 500e241f8d

View File

@ -59,12 +59,7 @@ func handleAtMessage(m entity.Message) {
context.Background(), context.Background(),
openai.ChatCompletionRequest{ openai.ChatCompletionRequest{
Model: model, Model: model,
Messages: []openai.ChatCompletionMessage{ Messages: messages,
{
Role: openai.ChatMessageRoleUser,
Content: m.Content,
},
},
}, },
) )