mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-30 02:35:29 +08:00
parent
50c6369f46
commit
bc3dbb443e
@ -117,7 +117,7 @@ def search_engine_chat(query: str = Body(..., description="用户输入", exampl
|
||||
answer = ""
|
||||
async for token in callback.aiter():
|
||||
answer += token
|
||||
yield json.dumps({"answer": token,
|
||||
yield json.dumps({"answer": answer,
|
||||
"docs": source_documents},
|
||||
ensure_ascii=False)
|
||||
await task
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user