Skip to content

Commit 24db312

Browse files
QinYuuuuDev Agent
andauthored
update moderation service risk level (#682)
Co-authored-by: Dev Agent <[email protected]>
1 parent a667963 commit 24db312

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)