We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8090e4e commit 712e278Copy full SHA for 712e278
zhipuai/core/_sse_client.py
@@ -54,7 +54,7 @@ def __stream__(self) -> Iterator[ResponseT]:
54
data = sse.json_data()
55
if isinstance(data, Mapping) and data.get("agent_id"):
56
yield self._data_process_func(data=data, cast_type=self._cast_type, response=self.response)
57
- break
+ continue
58
if isinstance(data, Mapping) and data.get("error"):
59
raise APIResponseError(
60
message="An error occurred during streaming",
0 commit comments