Skip to content

Commit 712e278

Browse files
author
jinhaiyang
committed
cogtts
1 parent 8090e4e commit 712e278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zhipuai/core/_sse_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __stream__(self) -> Iterator[ResponseT]:
5454
data = sse.json_data()
5555
if isinstance(data, Mapping) and data.get("agent_id"):
5656
yield self._data_process_func(data=data, cast_type=self._cast_type, response=self.response)
57-
break
57+
continue
5858
if isinstance(data, Mapping) and data.get("error"):
5959
raise APIResponseError(
6060
message="An error occurred during streaming",

0 commit comments

Comments
 (0)