From 16838ff80f8c0b73ee099f07a76b0a8abd2eae89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Tue, 14 May 2024 15:57:31 +0800 Subject: [PATCH] :bug: Fix a bug. --- plugin/plugins/ai.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/plugins/ai.go b/plugin/plugins/ai.go index dec8b5e3..e6329802 100644 --- a/plugin/plugins/ai.go +++ b/plugin/plugins/ai.go @@ -54,7 +54,7 @@ func AI(m *plugin.MessageContext) { // 组装消息体 messages := make([]openai.ChatCompletionMessage, 0) - if config.Conf.Ai.Personality != "" { + if prompt != "" { // 填充人设 messages = append(messages, openai.ChatCompletionMessage{ Role: openai.ChatMessageRoleSystem,