Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 1.69 KB

README_en.md

File metadata and controls

61 lines (44 loc) · 1.69 KB

openAiAuth

OpenAI/chatGpt User name and password Authorized login The jar package is encapsulated

简体中文文档.

Usage

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

Use proxy

// &lt; host&gt; No http or https prefix!
SessionRes session = new OpenAiAuth("<Your email>", "Your password", new Proxy(Proxy.Type.HTTP,
                new InetSocketAddress("<host>", "<port>"))).auth();

Dependency

<dependency>
    <groupId>cn.jianwoo.openai.auth</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>

Note

Since the API interface of the official website may be adjusted sometimes, it is not guaranteed that this jar package will be successfully adjusted. If it fails, please leave a message. This program does not transfer or save any data to the server!

About the response data

If "You are being rate limited." or "We have detected suspicious login behavior and further attempts will be blocked" This situation is generally not on the official website, this is because of excessive traffic or login frequently, and so on can be logged in.

What can we use accessToken for?

When logging in to chatGpt, you can obtain accessToken directly through the email and password call without logging in from the browser.