点赞点踩
更新时间:2024-11-18
基本信息
接口描述:对一轮会话效果进行反馈,记录用户点赞、点踩信息
Path: /open/v1/conversation/evaluate/comment
Method: POST
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 |
Body
参数名称 | 参数类型 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
sessionId | String | 是 | 51d4972f-xxx | 会话session |
queryId | String | 是 | 84143f2a-xxx | 会话id |
action | String | 是 | "1" | 点赞:"1" 无:"0" 点踩:"-1" |
comments | String | 是 | ["outOfNothing", "incompleteAnswer", "irrelevantAnswer","outdatedInformation", "replyToRedundancy","other"] |
outOfNothing=答非所问 incompleteAnswer=回复不全 irrelevantAnswer=无中生有 outdatedInformation=信息过时 replyToRedundancy=回复冗余 other=其他 |
otherReason | String | 否 | 默认为"", 使用自定义评价内容时comments 选择"other" |
请求示例
Plain Text
1{
2 "sessionId": "51d4972f-3ca3-4acd-8640-89b6ded7e7ce",
3 "queryId": "84143f2a-fd70-4e7a-aa71-daf10deb2244",
4 "action": "-1",
5 "comments": [
6 "irrelevantAnswer"
7 ]
8}
返回数据
Javascript
1{
2 "time": 1685083542707,
3 "data": null,
4 "code": 200,
5 "msg": "OK"
6}