Skip to content

Commit

Permalink
fix stream text (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c authored Sep 4, 2024
1 parent ee78d52 commit 07165b3
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 @@ -52,7 +52,7 @@ def text(self) -> str:
field will be updated accordingly."""
if self._text is None:
if self.stream is not None:
for chunk in self.stream:
for _, chunk in self.stream:
self._text += chunk
return self._text

Expand Down

0 comments on commit 07165b3

Please sign in to comment.