手把手教程:通过github copilot的服务使用GPT-4
一、准备
GitHub学生包(淘宝/咸鱼上购买 成品号,学生的可以自己去试着申请下)
GitHub学生包官方地址:https://education.github.com/pack/offers
PS:想白嫖的可以看下这个大佬的:https://linux.do/t/topic/2279/234
二、开始
1、获取Copilot权益,参考这个教程把:https://zhuanlan.zhihu.com/p/626753366
2、获取Copilot GHU秘钥,访问GPT的服务:
- 打开 https://cocopilot.org/copilot/token 89 授权,这个时候你会有一个验证码的请求会发送到你的邮箱里面,刷新邮箱获取github的验证码
- 回到 https://cocopilot.org/copilot/token 89 页面应该看到了一个gnu开头的秘钥,这个秘钥就是调用的授权秘钥
3、测试Copilot GPT4 服务:
curl --location ‘https://proxy.cocopilot.org/v1/chat/completions’
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer ghu_xxx’
–data ‘{
“model”: “gpt-4”,
“messages”: [{“role”: “user”, “content”: “鲁迅为什么暴打周树人?”}]
}’
4、部署ChatGPT-Next-Web
ChatGPT-Next-Web:GitHub - ChatGPTNextWeb/NextChat: ✨ Light and Fast AI Assistant. Support: Web | iOS | MacOS | Android | Linux | Windows
、先fork代码仓库:
、使用zeabur部署ChatGPT-Next-Web
https://zeabur.com/ github账号授权登录
部署ChatGPT-Next-Web镜像,参考快速入门 - Zeabur
配置参数:
OPENAI_API_KEY=ghu_xxxxxxxxxxxxxxxx
CODE=123456
BASE_URL=https://proxy.cocopilot.org
保存后Redeploy重新下,不然可能不生效:
、生成域名
、直接访问配置好的域名,就能使用ChatGPT-Next-Web了:
5、使用自己的域名:
白嫖GitHub 学生包中namecheap 免费.me域名一年:参考这个教程吧。GitHub Student Developer Pack:获取namecheap免费.me域名-大鸟笔记
申请好namecheap域名后,在zeabur上绑定上自定义域名
绑定好后,zeabur会给你一个ip,你拿着IP去namecheap控制台绑定DNS即可。






