Langchain-Chatchat部署总结

项目地址:

https://github.com/chatchat-space/Langchain-Chatchat

整体安装比较方便,在阿里云购买云主机,购买的国外站点机器,

该项目运行最佳坏境为

  • Linux Ubuntu 22.04.5
  • Python 版本 == 3.11.7
  • CUDA 版本: == 12.1
  • torch==2.1.2

使用最轻量级部署方案

git clone https://github.com/chatchat-space/Langchain-Chatchat.git
cd Langchain-Chatchat/ 
pip install -r requirements_lite.txt
mv basic_config.py.example basic_config.py
mv kb_config.py.example kb_config.py
mv model_config.py.example model_config.py
mv prompt_config.py.example prompt_config.py
mv server_config.py.example server_config.py

修改model的大模型配置

    "openai-api": {
        "model_name": "gpt-3.5-turbo",
        "api_base_url": "https://api.chatanywhere.tech/v1",
        "api_key": "sk-45aHXQhjXoZJzXCZyuY2OjmAIhDHN9BnoN26nFTFdFgl7y1R",
        "openai_proxy": "https://api.chatanywhere.tech/v1",
    },

免费chatgpts国内代理,只能使用3.5

GitHub - chatanywhere/GPT_API_free: Free ChatGPT API Key,免费Cha

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值