我这边尝试检测:”特3456书yuuo莞6543李zxcz蒜7782法fgnv级“ 字符串
响应:{'errcode': 0, 'errmsg': 'ok', 'detail': [{'strategy': 'keyword', 'errcode': 0}, {'strategy': 'content_model', 'errcode': 0, 'suggest': 'pass', 'label': 100, 'prob': 90}], 'trace_id': '61ca7c49-1b704124-06739dd6', 'result': {'suggest': 'pass', 'label': 100}}
检测一直都是正常的,并未认定为敏感词汇
你好,内容安全能力2.0无须使用该”特3456书yuuo莞6543李zxcz蒜7782法fgnv级“ 进行测试哈。
import requests
url="https://api.weixin.qq.com/wxa/msg_sec_check?access_token=xxx"
data = {
"content": "检测的文本内容",
"openid": "OPENID", # 传的是用户的openid
"version": 2,
"scene": 3,
}
headers = {
"Content-Type": "application/json; charset=UTF-8",
}
res = requests.post(url=url, data=json.dumps(data, ensure_ascii=False).encoding("utf-8"), headers=headers)
敏感词过滤调用有上限吗