mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-30 02:35:29 +08:00
update api.py
This commit is contained in:
parent
f173d8b6b1
commit
8635f63c31
9
api.py
9
api.py
@ -252,11 +252,18 @@ async def no_knowledge_chat(
|
||||
),
|
||||
):
|
||||
|
||||
for resp, history in local_doc_qa._call(
|
||||
for resp, history in local_doc_qa.llm._call(
|
||||
query=question, chat_history=history, streaming=True
|
||||
):
|
||||
pass
|
||||
|
||||
return ChatMessage(
|
||||
question=question,
|
||||
response=resp["result"],
|
||||
history=history,
|
||||
source_documents=None,
|
||||
)
|
||||
|
||||
async def stream_chat(websocket: WebSocket, knowledge_base_id: str):
|
||||
await websocket.accept()
|
||||
vs_path = os.path.join(VS_ROOT_PATH, knowledge_base_id)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user