修改了检测模式

This commit is contained in:
2023-12-18 00:18:27 +00:00
parent 4ed14be05f
commit 24b9a9fedb

View File

@ -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