Ai data mask deny word match optimize (#1453)

This commit is contained in:
007gzs
2024-11-05 15:26:55 +08:00
committed by GitHub
parent 7e8b0445ad
commit c1f2504e87
7 changed files with 78 additions and 50 deletions

View File

@@ -153,6 +153,12 @@ var RustWasmPluginsAiDataMasking = suite.ConformanceTest{
[]byte("test"),
[]byte("{\"errmsg\":\"提问或回答中包含敏感词,已被屏蔽\"}"),
))
testcases = append(testcases, gen_assertion(
"system_no_deny.raw.com",
false,
[]byte("test"),
[]byte("{\"res\":\"工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作\"}"),
))
testcases = append(testcases, gen_assertion(
"costom_word1.raw.com",
false,