fix: ApiRequest.agent_chat 应当返回 dict 而非 str (#2520)

This commit is contained in:
liunux4odoo 2024-01-02 09:54:23 +08:00 committed by GitHub
parent 3c33ca7b89
commit 7d4a6b5edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ class ApiRequest:
# pprint(data) # pprint(data)
response = self.post("/chat/agent_chat", json=data, stream=True) 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( def knowledge_base_chat(
self, self,