Step1
git clone --depth=1 https://github.com/binary-husky/gpt_academic.git
cd gpt_academic
Step2
Docker-compose.yml文件里关闭代理,设置端口映射version: '3'
services:
gpt_academic_nolocalllms:
image: ghcr.io/binary-husky/gpt_academic_nolocal:master
environment:
API_URL_REDIRECT: '{"https://api.openai.com/v1/chat/completions": "https://apiproxy.ai/v1/chat/completions"}'
USE_PROXY: 'False'
LLM_MODEL: 'gpt-3.5-turbo'
AVAIL_LLM_MODELS: '["gpt-3.5-turbo", "gpt-4o","o1-mini","gpt-4o-mini"]'
WEB_PORT: '22304'
ADD_WAIFU: 'True'
ports:
- '22304:22304'
command: >
bash -c "python3 -u main.py"
Compose 部署的服务关闭:
docker-compose -f docker-compose.yml down