mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-02 20:53:13 +08:00
fix: ApiRequest.agent_chat 应当返回 dict 而非 str (#2520)
This commit is contained in:
parent
3c33ca7b89
commit
7d4a6b5edf
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user