Git Product home page Git Product logo

openaiauth's Introduction

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,直接通过邮箱和密码调用获取。

openaiauth's People

Contributors

gulihua10010 avatar

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.