Skip to content

Commit 5e8114b

Browse files
author
潘婉宁
committed
fix: exception
1 parent 2978e70 commit 5e8114b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

volcenginesdkarkruntime/_exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class ArkInternalServerError(ArkAPIStatusError):
164164
pass
165165

166166

167-
class ArkLengthFinishReasonError(ArkAPIStatusError):
167+
class ArkLengthFinishReasonError(ArkError):
168168
completion: ChatCompletion
169169
"""The completion that caused this error.
170170
@@ -181,7 +181,7 @@ def __init__(self, *, completion: ChatCompletion) -> None:
181181
self.completion = completion
182182

183183

184-
class ArkContentFilterFinishReasonError(ArkAPIStatusError):
184+
class ArkContentFilterFinishReasonError(ArkError):
185185
def __init__(self) -> None:
186186
super().__init__(
187187
"Could not parse response content as the request was rejected by the content filter",

0 commit comments

Comments
 (0)