diff --git a/internal/biz/do/prompt.go b/internal/biz/do/prompt.go index 3993af1..3e4e965 100644 --- a/internal/biz/do/prompt.go +++ b/internal/biz/do/prompt.go @@ -40,8 +40,8 @@ func (f *WithSys) CreatePrompt(ctx context.Context, rec *entitys.Recognize) (mes // Role: "assistant", // 助手角色 // Content: "### 聊天记录:" + pkg.JsonStringIgonErr(rec.ChatHis), // 助手回复内容 }, api.Message{ - Role: "user", // 用户角色 - Content: "历史聊天记录:" + pkg.JsonStringIgonErr(rec.ChatHis), // 用户输入内容 + Role: "assistant", // 助手角色 + Content: "用户历史输入:" + pkg.JsonStringIgonErr(rec.ChatHis), // 用户历史输入 }, api.Message{ Role: "user", // 用户角色 Content: content.String(), // 用户输入内容