Merge branch 'master' into dev

This commit is contained in:
imClumsyPanda 2023-06-07 18:15:03 +08:00
commit a438b2bb15
3 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ docker run --gpus all -d --name chatglm -p 7860:7860 -v ~/github/langchain-ChatG
### 软件需求
本项目已在 Python 3.8 - 3.10CUDA 11.7 环境下完成测试。已在 Windows、ARM 架构的 macOS、Linux 系统中完成测试。
本项目已在 Python 3.8.1 - 3.10CUDA 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 项目交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。

2
api.py
View File

@ -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):

BIN
img/qr_code_27.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB