-
Notifications
You must be signed in to change notification settings - Fork 8.2k
接入copilot‐gpt4‐service
binary-husky edited this page Mar 15, 2024
·
4 revisions
- 步骤1:一键部署copilot-gpt4-service
docker run -d --name copilot-gpt4-service -e COPILOT_TOKEN=把你的Token填到这里 --restart always --net=host aaamoon/copilot-gpt4-service:latest
- 步骤2:配置config.py(详情见第三方API‐KEY接入指南)
API_KEY = 'sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' # 若使用copilot-gpt4-service,则不需要填写
LLM_MODEL = "gpt-4"
API_URL_REDIRECT = {
"https://api.openai.com/v1/chat/completions": "http://127.0.0.1:8080/v1/chat/completions"
}
- 步骤3:启动GPT-Academic
https://github.com/binary-husky/gpt_academic/issues/1629