fastapi langchain javascript, streaming response 手写效果流式响应
1 自行安装 python 环境,建议使用 docker
# 示例
sudo docker run -it --name python3.11 -p 8008:8008 -v /opt/wwwroot/www:/www -d python:3.11
# 安装好 python 环境后,进入项目根目录执行
pip install -r requirements.txt
# 后端
python main.py
直接双击这个文件即可运行:frontend/index.html
代码全部来自成熟商业项目,希望大家捧场:chatus.co
All codes are extracted from mature commercial projects: chatus.co, everyone is welcome to visit