# chatgpt-tarot-divination **Repository Path**: czq1ac/chatgpt-tarot-divination ## Basic Information - **Project Name**: chatgpt-tarot-divination - **Description**: AI 算命,占卜,塔罗牌,姓名五格,周公解梦,生辰八字,梅花易数 chatgpt-tarot-divination.aks.dreamhunter2 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2024-01-08 - **Last Updated**: 2024-03-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # chatgpt tarot divination - [chatgpt tarot divination](#chatgpt-tarot-divination) - [AI 算命,占卜 功能](#ai-算命占卜-功能) - [Deploy by docker](#deploy-by-docker) - [Local Run](#local-run) ## AI 算命,占卜 功能 - [x] 塔罗牌 - [x] 生辰八字 - [x] 姓名五格 - [x] 周公解梦 - [x] 起名 - [x] 梅花易数 - [x] 姻缘 ![@alongLFB](https://github.com/alongLFB) ![demo](assets/demo.png) ## Deploy by docker ```yaml 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` 为必填项, 其余为可选项 ```bash 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 ```bash 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 ```