From 9711248cce036c94fcbae9b83e72478ed8a453a5 Mon Sep 17 00:00:00 2001 From: Xuchen Pan <32844285+pan-x-c@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:21:15 +0800 Subject: [PATCH] [HOTFIX] Fix the bug in zhipu api with streaming text (#461) --- 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 b034a4197..661ccaeac 100644 --- a/src/agentscope/models/response.py +++ b/src/agentscope/models/response.py @@ -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