Giter Club home page Giter Club logo

yanyutin753 / refresh-gpt-chat Goto Github PK

View Code? Open in Web Editor NEW
174.0 4.0 18.0 60.63 MB

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

Home Page: https://apifox.com/apidoc/shared-4b9a7517-3f80-47a1-84fc-fcf78827a04a

License: MIT License

Dockerfile 0.72% Java 99.28%
chatgpt ninja pandoratov1api

refresh-gpt-chat's Introduction

refresh-gpt-chat

Docker Image Size (tag)Docker PullsGitHub Repo stars

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

简介

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!


功能特性

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

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

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

  • 支持反代v1/audio/speech接口:调用tts-1,文字转语音

  • 支持反代v1/audio/transcriptions接口:调用whisper-1,语言转文字

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

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

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

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

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

Important

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

Sponsor

如果你觉得我的开源项目对你有帮助,可以赞助我一杯咖啡嘛,十分感谢!!!

Star History

Star History Chart

refresh-gpt-chat's People

Contributors

yanyutin753 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

refresh-gpt-chat's Issues

采用plus账号的refresh token无法正常返回

首先,谢谢大佬的工作。已经给star。
原来一直用你的tokentools+pandoranext使用,自己在用主要是chat2api功能,用来一些应用的chatgpt plugin上。
根据https://apifox.com/apidoc/shared-4b9a7517-3f80-47a1-84fc-fcf78827a04a的文档说明,很快就将ninja和refresh-gpt-chat搭建好。从https://chat.freegpts.org/applelogin获得refresh token。
但是测试过程中发现:
用普通3.5账号,可以正常将refresh token当作api使用。如图:
image
但是用plus的账号,无论是用gpt-3.5-turbo还是gpt-4.0,返回的message的content都是空值。
image

这个问题要如何解决,这个和直接用access token用ninja的/v1/chat/completions返回的是一样的。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.