内容审核 MODERATION-文本内容审核(V3):响应示例

时间:2023-11-20 15:26:00

响应示例

状态码: 200

成功响应示例
{
  "request_id" : "58e7d9c7-3456-4ba1-80df-6f25506bc4df",
  "result" : {
     "suggestion" : "block",
     "label" : "customized",
     "details" : [ {
        "suggestion" : "block",
        "label" : "customized",
        "confidence" : 1,
        "segments" : [ {
            "segment" : "xxx",
            "glossary_name" : "zzz"
       } ]
     } ]
   }
}

状态码: 400

失败响应示例
{
  "error_code" : "AIS.0011",
  "error_msg" : "Lack the request parameter, or the request parameter is empty."
}
support.huaweicloud.com/api-moderation/moderation_03_0069.html