-
Notifications
You must be signed in to change notification settings - Fork 8k
接入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(详情见https://github.com/binary-husky/gpt_academic/wiki/%E7%AC%AC%E4%B8%89%E6%96%B9API%E2%80%90KEY%E6%8E%A5%E5%85%A5%E6%8C%87%E5%8D%97)
API_KEY = 'sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
LLM_MODEL = "gpt-4"
API_URL_REDIRECT = {
"https://api.openai.com/v1/chat/completions": "http://127.0.0.1:8080/v1/chat/completions"
}
- 步骤3:没有了