Skip to content

Commit fe4f24f

Browse files
author
潘婉宁
committed
feat: support json schema
1 parent c76b63e commit fe4f24f

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

volcenginesdkarkruntime/_request_options.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
__all__ = ["ExtraRequestOptions", "RequestOptions"]
1313

1414
from ._types import NotGiven
15-
from ._utils._utils import strip_not_given
1615

1716
from typing import (
1817
Callable,

volcenginesdkarkruntime/_response.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ def is_closed(self) -> bool:
117117
def __repr__(self) -> str:
118118
return f"<{self.__class__.__name__} [{self.status_code} {self.http_response.reason_phrase}] type={self._cast_to}>"
119119

120-
@override
121-
def __repr__(self) -> str:
122-
return f"<{self.__class__.__name__} [{self.status_code} {self.http_response.reason_phrase}] type={self._cast_to}>"
123-
124120
def _parse(self, *, to: type[_T] | None = None) -> R | _T:
125121
cast_to = to if to is not None else self._cast_to
126122

volcenginesdkarkruntime/common/streaming/chat/_completions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from jiter import from_json
1919
except ImportError:
2020
import json
21-
from typing import Dict, Any
21+
from typing import Dict
2222

2323
def from_json(json_str: bytes, partial_mode: bool) -> Dict[str, Any]:
2424
try:

0 commit comments

Comments
 (0)