Skip to content

Commit 3f4b9de

Browse files
fengxinjie.kxaviergoh-bytedance
authored andcommitted
feat(arkruntime): support moderation hit type
1 parent 1686f2e commit 3f4b9de

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

volcenginesdkarkruntime/types/chat/chat_completion.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ class Choice(BaseModel):
2727
(deprecated) if the model called a function.
2828
"""
2929

30+
moderation_hit_type: Optional[
31+
Literal["violence", "severe_violation"]
32+
] = None
33+
"""The type of content moderation service hit."""
34+
3035
index: int
3136
"""The index of the choice in the list of choices."""
3237

volcenginesdkarkruntime/types/chat/chat_completion_chunk.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ class Choice(BaseModel):
9292
(deprecated) if the model called a function.
9393
"""
9494

95+
moderation_hit_type: Optional[
96+
Literal["violence", "severe_violation"]
97+
] = None
98+
"""The type of content moderation service hit."""
99+
95100
index: int
96101
"""The index of the choice in the list of choices."""
97102

0 commit comments

Comments
 (0)