启动说明

This commit is contained in:
glide-the 2024-05-07 14:40:38 +08:00
parent e968f9296b
commit b659a1badc
2 changed files with 9 additions and 7 deletions

View File

@ -52,26 +52,28 @@ make format_diff
#### pypi安装一键启动 #### pypi安装一键启动
- 安装chatchat - 安装chatchat
```shell ```shell
pip install chatchat pip install langchain-chatchat -U
``` ```
- 复制配置文件 - 复制配置文件
```shell ```shell
cd chatchat-server/chatchat cd chatchat-server/
python copy_config_example.py mkdir ~/.config/chatchat/
cp -r configs ~/.config/chatchat/
cp -r data ~/.config/chatchat/
cp -r img ~/.config/chatchat/
``` ```
> 当项目安装完成,配置这个`model_providers.yaml`文件,即可完成自定义平台加载 > 当项目安装完成,配置这个`model_providers.yaml`文件,即可完成自定义平台加载
> >
> 注意: 在您配置平台之前请确认平台依赖完整例如智谱平台您需要安装智谱sdk `pip install zhipuai` > 注意: 在您配置平台之前请确认平台依赖完整例如智谱平台您需要安装智谱sdk `pip install zhipuai`
> >
> 详细配置请参考[README.md](..%2Fmodel-providers%2FREADME.md) > 详细配置请参考[README.md](../model-providers/README.md)
- 启动服务 - 启动服务
```shell ```shell
cd chatchat-server/ chatchat -a
python -m chatchat.startup -a
``` ```

View File

@ -47,7 +47,7 @@ pydantic = "2.6.4"
httpx = {version = ">=0.25.2", extras = ["brotli", "http2", "socks"]} httpx = {version = ">=0.25.2", extras = ["brotli", "http2", "socks"]}
python-multipart = "0.0.9" python-multipart = "0.0.9"
# webui # webui
streamlit = "1.30.0" streamlit = "1.34.0"
streamlit-option-menu = "0.3.12" streamlit-option-menu = "0.3.12"
streamlit-antd-components = "0.3.1" streamlit-antd-components = "0.3.1"
streamlit-chatbox = "1.1.12" streamlit-chatbox = "1.1.12"