Skip to content

Commit bcc12a8

Browse files
author
Dev Agent
committed
update moderation service risk level
1 parent ebbb213 commit bcc12a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/sensitive/aliyun_green.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ func (c *AliyunGreenChecker) PassLLMCheck(ctx context.Context, scenario Scenario
280280
}
281281

282282
results := resp.Body.Data.Result
283-
if *resp.Body.Data.RiskLevel == "low" || *resp.Body.Data.RiskLevel == "none" {
283+
if *resp.Body.Data.RiskLevel == "low" ||
284+
*resp.Body.Data.RiskLevel == "medium" ||
285+
*resp.Body.Data.RiskLevel == "none" {
284286
return &CheckResult{IsSensitive: false}, nil
285287
}
286288
// refer to label https://help.aliyun.com/document_detail/2671445.html#section-3t8-ane-efg

0 commit comments

Comments
 (0)