From 7d4a6b5edfc822c9483c5bea890588bc0506ad54 Mon Sep 17 00:00:00 2001 From: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com> Date: Tue, 2 Jan 2024 09:54:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ApiRequest.agent=5Fchat=20=E5=BA=94?= =?UTF-8?q?=E5=BD=93=E8=BF=94=E5=9B=9E=20dict=20=E8=80=8C=E9=9D=9E=20str?= =?UTF-8?q?=20(#2520)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui_pages/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui_pages/utils.py b/webui_pages/utils.py index 18f76a8..2f642d8 100644 --- a/webui_pages/utils.py +++ b/webui_pages/utils.py @@ -320,7 +320,7 @@ class ApiRequest: # pprint(data) response = self.post("/chat/agent_chat", json=data, stream=True) - return self._httpx_stream2generator(response) + return self._httpx_stream2generator(response, as_json=True) def knowledge_base_chat( self,