将 Github Copilot Chat 请求转换为 ChatGPT 请求,免费使用 GPT-4 模型,欢迎大家体验使用

132 天前
 you222

使用方法

1.访问 http://gpt4copilot.tech

2.在设置的接口地址填入 http://gpt4copilot.tech

3.在 API Key 中填入 Github Copilot 的 Token

提供两个已经开通了 Github Copilot 账号的 Token ,可以直接使用:

(大佬们如果有开通 Github Copilot 的话,可以使用自己的 Token ,不然我怕上面那两个账号顶不住)

4.支持各种 OpenAI 模型选择,目前默认使用的是 GPT-4 模型

之前也有其他大佬有类似的实现,最近用 golang 写了一个

Github: https://github.com/aaamoon/copilot-gpt4-service

如果大佬们用得上,可以给个 star ~

16584 次点击
所在节点    分享创造
176 条回复
jiang24gdufs
132 天前
没有 OPENAI 的 Key 也可以请求吗? 什么原理?
you222
132 天前
@jiang24gdufs 可以按照步骤试试,因为 Github Copilot Chat 就是调用 OpenAI 的 GPT 模型,github 里面有个实现原理,可以看看
xiaogang530
132 天前
{
"error": true,
"message": "empty response"
}
you222
132 天前
@xiaogang530 是不是复制的 Token 有问题呢,ghu_1FShK8KdA9UdoIEVUfqgDD04n0VtEz4GqEhP
txhwind
132 天前
我用提供的 token 也是 "empty response"
jiang24gdufs
132 天前
怎么查看 copilot 的 token?
you222
132 天前
@xiaogang530 用这个试试:ghu_OfVPhvzFpptDwEV6jVqrxETAbiNwS30cvgej
you222
132 天前
@txhwind 用这个试试:ghu_OfVPhvzFpptDwEV6jVqrxETAbiNwS30cvgej
Sniper000
132 天前
好像不太行
loshine1992
132 天前
https://cocopilot.org/copilot/token

这个链接可以获取自己的 token
jiang24gdufs
132 天前
@jiang24gdufs #6 已经从自己的账号中找到
you222
132 天前
you222
132 天前
@Sniper000 用这个 Token 试试:ghu_OfVPhvzFpptDwEV6jVqrxETAbiNwS30cvgej
Sniper000
132 天前
同问
liprais
132 天前
{
{"role": "system",
"content": "\nYou are ChatGPT, a large language model trained by OpenAI.\nKnowledge cutoff: 2021-09\nCurrent model: gpt-4\nCurrent time: 2023/11/7 11: 39: 14\n"},
{"role": "user",
"content": content},
},
Model: "gpt-4",
Temperature: 0.5,
TopP: 1,
N: 1,
Stream: true,
Intent: true,
OneTimeReturn: false,
}
核心就是这个请求
Carlos920
132 天前
POST http://gpt4copilot.tech/v1/chat/completions 500 (Internal Server Error)
rimondo242
132 天前
POST http://gpt4copilot.tech/v1/chat/completions 500 (Internal Server Error)
{
"error": true,
"message": "Failed to fetch"
}
you222
132 天前
最新 Token 可以试试:ghu_BvyEfLPXWtyQgr949ReZyMr0EzwZtk49Hwb0
bestkayle
132 天前
那两个测试问题文心一言 4.0 也能回答正确😂
Hilong
132 天前
@you222 #18 这个可以

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1004009

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX