Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
glide-the 402153de09 | 1 week ago | |
---|---|---|
.. | ||
chatchat | 1 week ago | |
tests | 1 month ago | |
README.md | 1 week ago | |
poetry.toml | 1 month ago | |
pyproject.toml | 1 week ago |
这个项目使用 Poetry 来管理依赖。
注意:在安装Poetry之前,如果您使用Conda,请创建并激活一个新的Conda env(例如,
conda create-n chatchat python=3.9
)
Install Poetry: documentation on how to install it.
注意: 如果您使用 Conda 或 Pyenv 作为您的环境/包管理器,在安装Poetry之后,
使用如下命令使Poetry使用virtualenv python environment (poetry config virtualenvs.prefer-active-python true
)
cd chatchat
poetry install --with lint,test
在提交PR之前,请在本地运行以下命令;CI系统也会进行检查。
本项目使用ruff进行代码格式化。
要对某个库进行格式化,请在相应的库目录下运行相同的命令:
cd {model-providers|chatchat|chatchat-server|chatchat-frontend}
make format
此外,你可以使用format_diff命令仅对当前分支中与主分支相比已修改的文件进行格式化:
make format_diff
当你对项目的一部分进行了更改,并希望确保更改的部分格式正确,而不影响代码库的其他部分时,这个命令特别有用。
环境配置完成后,启动步骤为先启动chatchat-server,然后启动chatchat-frontend。
chatchat可通过pypi安装一键启动,您也可以选择使用源码启动。
pip install langchain-chatchat -U
cd chatchat-server/
mkdir ~/.config/chatchat/
cp -r configs ~/.config/chatchat/
cp -r data ~/.config/chatchat/
cp -r img ~/.config/chatchat/
当项目安装完成,配置这个
model_providers.yaml
文件,即可完成自定义平台加载注意: 在您配置平台之前,请确认平台依赖完整,例如智谱平台,您需要安装智谱sdk
pip install zhipuai
详细配置请参考README.md
chatchat -a
cd chatchat-server/chatchat
python copy_config_example.py
cd chatchat-server/chatchat
python init_database.py
python chatchat-server/chatchat/startup.py -a
No Description
JavaScript Markdown Python SVG CSS other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》