diff --git a/src/agentscope/models/response.py b/src/agentscope/models/response.py index 60a140ca3..b034a4197 100644 --- a/src/agentscope/models/response.py +++ b/src/agentscope/models/response.py @@ -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