From 07165b3bb509d7bc9d5801e4dfe1b13f7a34d09c Mon Sep 17 00:00:00 2001 From: Xuchen Pan <32844285+pan-x-c@users.noreply.github.com> Date: Wed, 4 Sep 2024 18:14:36 +0800 Subject: [PATCH] fix stream text (#431) --- src/agentscope/models/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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