接入copilot‐gpt4‐service (original) (raw)
接入copilot-gpt4-service
- 步骤1:一键部署copilot-gpt4-service
docker run -d --name copilot-gpt4-service -e COPILOT_TOKEN=把你的Token填到这里 --restart always --net=host aaamoon/copilot-gpt4-service:latest
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"
}
https://github.com/binary-husky/gpt_academic/issues/1629