修改了检测模式
This commit is contained in:
@ -38,8 +38,8 @@ async function IsValid(text) {
|
|||||||
if(text.length==0||text.length>590) return true;
|
if(text.length==0||text.length>590) return true;
|
||||||
// 通过以下代码创建API请求并设置参数。
|
// 通过以下代码创建API请求并设置参数。
|
||||||
const params = {
|
const params = {
|
||||||
// 文本检测service:内容安全控制台文本增强版规则配置的serviceCode,示例:chat_detection
|
// 文本检测service:内容安全控制台文本增强版规则配置的serviceCode,示例:comment_detection
|
||||||
"Service": "chat_detection",
|
"Service": "comment_detection",
|
||||||
"ServiceParameters": JSON.stringify({
|
"ServiceParameters": JSON.stringify({
|
||||||
//待检测文本内容。
|
//待检测文本内容。
|
||||||
"content": text
|
"content": text
|
||||||
|
Reference in New Issue
Block a user