Skip to content

Commit b4fd8fc

Browse files
author
liuyuzhe.316
committed
feat: 支持文档送检
1 parent f2423ea commit b4fd8fc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

volcengine-java-sdk-llmshield/src/main/java/com/volcengine/llmshield/ContentTypeV2.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

volcengine-java-sdk-llmshield/src/main/java/com/volcengine/llmshield/ModerateV2Result.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)