收藏
回答

内容安全检测接口出现同一关键词前后请求结果不一致的BUG?

1.正常的响应

{"errcode":0,"errmsg":"ok","detail":[{"strategy":"content_model","errcode":0,"suggest":"review","label":20001,"prob":90},{"strategy":"keyword","errcode":0}],"trace_id":"628c5468-3a24cb5c-42fed9d3","result":{"suggest":"review","label":20001}}

2.异常的响应

{"errcode":0,"errmsg":"ok","detail":{"0":{"strategy":"content_model","errcode":0,"suggest":"pass","label":100,"prob":90},"1":{"strategy":"keyword","errcode":0}},"trace_id":"628c55e4-19d1e3b1-1abeb2b8","result":{"suggest":"pass","label":100}}

最后一次编辑于  2022-05-24
回答关注问题邀请回答
收藏

2 个回答

  • 社区运营专员-wetingtu
    社区运营专员-wetingtu
    2022-05-24

    你好,核实不为接口问题,烦请自行排查下调用问题。

    trace_id:628c4296-7ab6a827-33e254f9,content传入编码正确,但目前scene值仅支持1,2,3,4;

    trace_id:628c4d2b-7abac2d8-3a972d2e,content传入编码不为utf-8编码,识别内容为\u****\u****


    2022-05-24
    有用 1
    回复
  • 青寒
    青寒
    2022-05-24

    两次请求的内容完全一模一样?

    2022-05-24
    有用
    回复 1
    • 💤
      💤
      2022-05-24
      是啊 都是领导人的名字
      2022-05-24
      回复
登录 后发表内容