【小白教程】refresh-gpt-chat 中转oaifree,支持refresh_token直接请求,自动转化access_token,支持gpts,ChatGPT-Account-ID值传入

refresh-gpt-chat

Docker Image Size (tag)Docker PullsGitHub Repo stars

不许白嫖,请给我免费的star​:star:吧,十分感谢!

:robot:简介

refresh-gpt-chat 中转oaifree或者PandoraToV1Api的/v1/chat/completions和/v1/images/generations接口,把refresh_token当key使用,内含hashmap,自动更新access_token,完美继承pandoraNext留下的refresh_token,支持基本所有的模型,小白也能快速使用!

refresh-gpt-chat Intercept the /v1/chat/completions and /v1/images/generations interface of oaifree or PandoraToV1Api, use the refresh_token as the key, which contains a hashmap, automatically update the access_token, perfectly inherit the refresh_token left by pandoraNext, support almost all models, even beginners can use it quickly!


:rainbow:功能特性

  • 通过refresh_token自动更新access_token:方便使用

  • 通过refresh_token作为key进行使用:更好放入one-api里面

  • 可适用于oaifree、PandoraToV1Api项目:反代服务,直接使用

  • 支持反代v1/images/generations接口:调用dall-e-3画图更出色

  • 自定义后缀:防止url被滥用

  • 支持base64识图:能转发识图接口

  • 回复打字机处理:回复更流畅,减少卡顿

  • 个人部署:保障隐私安全


:pushpin:注意事项

  • 本项目只提供转发接口:smiling_face_with_three_hearts:
  • 开源项目不易,请点个星星吧!!!

Star History

请给我一个免费的:star:吧!!!

Star History Chart

48 个赞

软件开发软件分享

:+1:

4 个赞

不明觉厉

3 个赞

厉害

4 个赞

不明觉厉

3 个赞

支持,开源不易

3 个赞

666

2 个赞

:+1:

3 个赞

感谢大佬分享

3 个赞

这个ChatGPT-Account-ID能直接加到refresh-gpt-chat里面吗?就是加个变量的那种,因为现在的客户端大都不支持ChatGPT-Account-ID这个参数。

3 个赞

66666

2 个赞

我直接加在token里面的,密钥加,填那个值就行

2 个赞

纯3.5账号能用吗

3 个赞

得转到我的refreshtov1api了

3 个赞
url = "https://token.oaifree.com/api/auth/refresh"
headers = {
    "Content-Type": " x-www-form-urlencoded;charset=UTF-8"
}
data = {
    "refresh_token": "替换成你的refresh_token"
}
response = requests.post(url, data=data)
print(response.json()["access_token"])```
有没有这种方式获取access_token
1 个赞

这个始皇又开这个接口吗,开的话 我可以加上这个渠道

1 个赞

这个接口已经是开了……大佬可以看下

1 个赞

好 我现在去看

1 个赞

现在支持接口获取ChatGPT-Account-ID啦,适配oaifree服务通过refresh_token刷新access_token

1 个赞