diff --git a/README.md b/README.md index 21d10e4..6fc5538 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ docker run --gpus all -d --name chatglm -p 7860:7860 -v ~/github/langchain-ChatG ### 软件需求 -本项目已在 Python 3.8 - 3.10,CUDA 11.7 环境下完成测试。已在 Windows、ARM 架构的 macOS、Linux 系统中完成测试。 +本项目已在 Python 3.8.1 - 3.10,CUDA 11.7 环境下完成测试。已在 Windows、ARM 架构的 macOS、Linux 系统中完成测试。 vue前端需要node18环境 @@ -227,6 +227,6 @@ Web UI 可以实现如下功能: - [x] VUE 前端 ## 项目交流群 -![二维码](img/qr_code_26.jpg) +![二维码](img/qr_code_27.jpg) 🎉 langchain-ChatGLM 项目交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。 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): diff --git a/img/qr_code_27.jpg b/img/qr_code_27.jpg new file mode 100644 index 0000000..39d6bcc Binary files /dev/null and b/img/qr_code_27.jpg differ