fix: 调整历史聊天记录

This commit is contained in:
fuzhongyun 2026-01-07 16:50:53 +08:00
parent f94738f7e7
commit eb398a4b4d
1 changed files with 2 additions and 2 deletions

View File

@ -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(), // 用户输入内容