Skip to content

openAI/chatGpt 用户名、密码授权登录 jar 包封装

Notifications You must be signed in to change notification settings

gulihua10010/openAiAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openAiAuth

openAI/chatGpt 用户名、密码授权登录 jar 包封装

English Doc.

用法

SessionRes session =new OpenAiAuth("<Your email>","Your password").auth();

使用代理

// <host>不带 http或者https前缀!
SessionRes session =new OpenAiAuth("<Your email>","Your password",new Proxy(Proxy.Type.HTTP,
        new InetSocketAddress("<host>","<port>"))).auth();

依赖

<dependency>
    <groupId>cn.jianwoo.openai</groupId>
    <artifactId>openAiAuth</artifactId>
    <version>1.0.7</version>
</dependency>

<!--仓库地址-->
<repositories>
<repository>
    <id>nexues</id>
    <name>snapshots</name>
    <url>https://s01.oss.sonatype.org/content/groups/public/</url>
    <releases>
        <enabled>true</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
    </snapshots>
</repository>
</repositories>

注意

由于官网的 API 接口有时会调整,不能保证这个 jar 包一定调成功,如果失败可以留言。 本程序不会传输或保存任何数据到服务器上!

关于返回的数据

如果出现"You are being rate limited." 或者 "We have detected suspicious login behavior and further attempts will be blocked" 这种情况一般官网也是登不上去的,这是因为流量过多或者登录频繁导致,等过会就可以登录。

accessToken可以用来干嘛?

当登录 chatGpt 时,可以不用浏览器上登录,然后抓包获取accessToken,直接通过邮箱和密码调用获取。

About

openAI/chatGpt 用户名、密码授权登录 jar 包封装

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages