Skip to content

AlwaysAtonal/chatglm-api

Repository files navigation

Hi, welcome to chatglm-fastapi

see config.ipynb

食用方法

注意: 以下步骤仅针对docker版本大于21.0.1适用

  1. 下载源码
git clone https://github.com/UNICKCHENG/chatglm-fastapi.git
cd chatglm-fastapi
  1. 修改配置文件
mv .env.example .env
vim .env
  1. 启动
docker-compose build && docker-compose up -d
  1. 设置用户key
# 进入容器
docker exec -it chatglm-api bash
python3
# 添加用户key

# user_id 尽量使用 数字、字母、下划线 的组合
user_id = 'your_user_id'
user_passwd = 'your-private-password'

from scripts.user import client as redis
redis.add_user(user_id, user_passwd)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published