File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
volcengine-java-sdk-llmshield/src/main/java/com/volcengine/llmshield Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ public enum ContentTypeV2 {
55 TEXT (1 ), // 文本
66 AUDIO (2 ), // 音频
77 IMAGE (3 ), // 图片
8- VIDEO (4 ); // 视频
8+ VIDEO (4 ), // 视频
9+ FILE (5 ); // 文件
910
1011 private final long value ;
1112
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ public class ModerateV2Result {
1616 @ JsonProperty ("PermitInfo" )
1717 private PermitInfoV2 permitInfo ; // 放行信息
1818
19+ @ JsonProperty ("ContentInfo" )
20+ private String contentInfo ; // 提交内容信息
21+
1922 @ JsonProperty ("Degraded" )
2023 private boolean degraded ; // 是否降级
2124
@@ -58,6 +61,10 @@ public void setPermitInfo(PermitInfoV2 permitInfo) {
5861 this .permitInfo = permitInfo ;
5962 }
6063
64+ public String getContentInfo () { return contentInfo ; }
65+
66+ public void setContentInfo (String contentInfo ) { this .contentInfo = contentInfo ;}
67+
6168 public boolean isDegraded () {
6269 return degraded ;
6370 }
You can’t perform that action at this time.
0 commit comments