hotfix #48

Merged
李寻欢 merged 3 commits from hotfix into main 2024-05-15 11:15:56 +08:00
Showing only changes of commit 16838ff80f - Show all commits

View File

@ -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,