fix: 修改订单号参数类型为interface
This commit is contained in:
parent
b02b988c5d
commit
d52fd23ecc
|
|
@ -28,10 +28,10 @@ func (f *WithSys) CreatePrompt(ctx context.Context, rec *entitys.Recognize) (mes
|
|||
)
|
||||
// 获取用户内容,如果出错则直接返回错误
|
||||
content, err := f.getUserContent(ctx, rec)
|
||||
log.Infof("生成prompt:%s", content)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.Infof("生成prompt:%s", content)
|
||||
// 构建提示消息列表,包含系统提示、助手回复和用户内容
|
||||
mes = append(prompt, api.Message{
|
||||
Role: "system", // 系统角色
|
||||
|
|
|
|||
Loading…
Reference in New Issue