Skip to content

Commit

Permalink
fix: ApiRequest.agent_chat 应当返回 dict 而非 str (chatchat-space#2520)
Browse files Browse the repository at this point in the history
  • Loading branch information
liunux4odoo committed Jan 2, 2024
1 parent 3c33ca7 commit 7d4a6b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui_pages/utils.py
Expand Up @@ -320,7 +320,7 @@ def agent_chat(
# 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,
Expand Down

0 comments on commit 7d4a6b5

Please sign in to comment.