chatgpt tarot divination
AI 算命,占卜 功能
Deploy by docker
services:
chatgpt-tarot-divination:
image: ghcr.io/dreamhunter2333/chatgpt-tarot-divination:latest
container_name: chatgpt-tarot-divination
restart: always
ports:
- 8000:8000
environment:
- api_key=sk-xxx
- api_base=https://api.openai.com/v1 # optional
- model=gpt-3.5-turbo # optional
- rate_limit=10/minute # optional
- user_rate_limit=600/hour # optional
- log_dir=/logs/ # optional
- github_client_id=xxx
- github_client_secret=xxx
- jwt_secret=secret
- ad_client=ca-pub-xxx
- ad_slot=123
Local Run
创建 .env
文件,填入如下内容, api_key
为必填项, 其余为可选项
api_key=sk-xxxx
api_base=https://api.openai.com/v1
github_client_id=xxx
github_client_secret=xxx
ad_client=ca-pub-xxx
ad_slot=123
RUN
cd frontend
pnpm install
pnpm build --emptyOutDir
cd ..
python3 -m venv ./venv
./venv/bin/python3 -m pip install -r requirements.txt
./venv/bin/python3 main.py