Browse Source

优化提示词

boweniac 1 day ago
parent
commit
3014492487
1 changed files with 2 additions and 2 deletions
  1. 2 2
      internal/utils/compapi/form.go

+ 2 - 2
internal/utils/compapi/form.go

@@ -47,7 +47,7 @@ func (me *FormClient) BuildRequest(req *types.CompApiReq) error {
 	//先重构message
 	newMessSlice := make([]types.StdCompMessage, 2)
 	newMessSlice[0] = types.StdCompMessage{Role: "system", Content: `# 任务
-请帮助user从通话记录中提取表单值,并返回一个JSON格式的表单值
+请根据提供的 表单模板,从聊天记录中提取出 用户 的相关信息,并将结果以 json 形式返回
 
 # 背景信息
 当前时间是:` + nowTime + `
@@ -61,7 +61,7 @@ func (me *FormClient) BuildRequest(req *types.CompApiReq) error {
 * 如表单类型为 date,返回示例:["2025-01-01"]
 * 如没有找到某个表单相关的值,请不要返回该表单`}
 
-	newMessSlice[1] = types.StdCompMessage{Role: "user", Content: `# 表单数据
+	newMessSlice[1] = types.StdCompMessage{Role: "user", Content: `# 表单模板
 ` + req.Variables["form_data"] + `
 
 # 聊天记录