Skip to content

Commit

Permalink
[HOTFIX] Fix the bug in zhipu api with streaming text (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c authored Oct 17, 2024
1 parent 6a5e0c3 commit 9711248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agentscope/models/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def text(self) -> str:
if self._text is None:
if self.stream is not None:
for _, chunk in self.stream:
self._text += chunk
self._text = chunk
return self._text

@text.setter
Expand Down

0 comments on commit 9711248

Please sign in to comment.