提交 5575079e 作者: imClumsyPanda

update api.py

上级 8635f63c
...@@ -253,15 +253,15 @@ async def no_knowledge_chat( ...@@ -253,15 +253,15 @@ async def no_knowledge_chat(
): ):
for resp, history in local_doc_qa.llm._call( for resp, history in local_doc_qa.llm._call(
query=question, chat_history=history, streaming=True prompt=question, history=history, streaming=True
): ):
pass pass
return ChatMessage( return ChatMessage(
question=question, question=question,
response=resp["result"], response=resp,
history=history, history=history,
source_documents=None, source_documents=[],
) )
async def stream_chat(websocket: WebSocket, knowledge_base_id: str): async def stream_chat(websocket: WebSocket, knowledge_base_id: str):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论