Skip to content

接入copilot‐gpt4‐service

binary-husky edited this page Mar 15, 2024 · 4 revisions

接入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"
}
  • 步骤3:启动GPT-Academic

Related Issue

https://github.com/binary-husky/gpt_academic/issues/1629