1.0.3 • Published 2 years ago
tig-ace v1.0.3
@tencent/tig-ace
ACE内容安全过滤接口 安装:
npm i @tencent/tig-ace
Ace官网
接口参数
const ace = new Ace('ace_ugc_326', 'xxxxxx');
const result = await ace.checkArticle(
3001,
{
id: '100086',
title: '',
description: '',
content: '',
pictures: []
},
{
account: 'tianxia',
role_name: 'tianxia'
}
);
console.log(result);
接口返回
{
err_code: 0,
err_msg: 'succ',
data: {
request_id: '326_tianxia_1649220420714_61841514',
text_check_result: {
check_result: 2,
filtered_text: '发扬爱学**精神,游戏开发方法论总结',
label: 101,
check_desc: '[TongQue] hit comm_black'
},
pic_check_results: []
}
}