From dc52bb134daa6f49517552c771c214f28efd2c10 Mon Sep 17 00:00:00 2001 From: zzxs <413284286@qq.com> Date: Sat, 3 Jun 2023 14:20:03 +0800 Subject: [PATCH] Update api.py (#540) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改api部署json解析 --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.py b/api.py index 3a96bc8..7926fb2 100644 --- a/api.py +++ b/api.py @@ -310,7 +310,7 @@ async def stream_chat(websocket: WebSocket, knowledge_base_id: str): turn = 1 while True: input_json = await websocket.receive_json() - question, history, knowledge_base_id = input_json[""], input_json["history"], input_json["knowledge_base_id"] + question, history, knowledge_base_id = input_json["question"], input_json["history"], input_json["knowledge_base_id"] vs_path = os.path.join(VS_ROOT_PATH, knowledge_base_id) if not os.path.exists(vs_path):