Giter VIP home page Giter VIP logo

Comments (14)

code-yeongyu avatar code-yeongyu commented on July 28, 2024 1

I am guessing within a week! πŸ‘ Thank you πŸ™Œ

from aishell.

code-yeongyu avatar code-yeongyu commented on July 28, 2024 1

Hey @xshapira! I've just released a new version featuring automatic browser login using access tokens! #56

Now, every time you make a request, it retrieves a fresh access token using your credentials from your chosen browser. Although this is a breaking change, you'll need to set up AiShell once more, but it shouldn't be too bothersome as all you need to do is select your preferred browser. And this patch also have done to ygka too. (They now share the same config)

Thank you for using the AiShell!

from aishell.

code-yeongyu avatar code-yeongyu commented on July 28, 2024

Guess the problem of revChatGPT? have you tried with the openai official api or the reverse engineered api?

Sorry for the late answer BTW

from aishell.

luxkatana avatar luxkatana commented on July 28, 2024

having the same issue! I am using the reverse engineering one.

Browser: Firefox
SSLError: HTTPSConnectionPool(host='explorer.api.openai.com', port=443): Max retries exceeded with url: /api/auth/session (Caused by SSLError(SSLError(1, '[SSL:
SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:992)')))

from aishell.

code-yeongyu avatar code-yeongyu commented on July 28, 2024

Currently recommend to use Official API, but i am looking into this and will fix ASAP. sorry 😞

from aishell.

code-yeongyu avatar code-yeongyu commented on July 28, 2024
  1. The cookie parsing feature retrieves the 'session token` from the given browser.
  2. The session token no longer works as OpenAI's ChatGPT authentication method
  3. access token now works instead of session token
  4. Since access token can be expired easily, I think I have to add an option to the AiShell Config: default browser and to retrieve access token, every time the user queries.

from aishell.

code-yeongyu avatar code-yeongyu commented on July 28, 2024

I am super busy now so expecting to be fixed not very soon, so now just recommend to use Official API. πŸ˜“ Thanks!

from aishell.

code-yeongyu avatar code-yeongyu commented on July 28, 2024

As a solution of this, I am thinking of:

  1. Update config json like following
{
  "language_model": "reverse_engineered_chatgpt",
  "openai_api_key": null,
  "browser": "brave" // firefox, chrome, safari or whatever
}
  1. Replace session token retrieving code as access token retrieving code
  • Using the browser's cookie, send request to https://chat.openai.com/api/auth/session to get the access token
  1. Send request to ChatGPT using configured information from 2

from aishell.

xshapira avatar xshapira commented on July 28, 2024

As a solution of this, I am thinking of:

  1. Update config json like following
{
  "language_model": "reverse_engineered_chatgpt",
  "openai_api_key": null,
  "browser": "brave" // firefox, chrome, safari or whatever
}
  1. Replace session token retrieving code as access token retrieving code
  • Using the browser's cookie, send request to https://chat.openai.com/api/auth/session to get the access token
  1. Send request to ChatGPT using configured information from 2

This looks good! Reverse engineering is really useful for ChatGPT Plus subscribers. Do you know when you'll release an update?

Thanks for the hard work πŸ‘

from aishell.

code-yeongyu avatar code-yeongyu commented on July 28, 2024

@xshapira FYI, before I update, You can use aishell by doing following:

  1. You can visit https://chat.openai.com/api/auth/session to get the access token
  2. and manually set access token into the json file (~/.aishell_config.json)

from aishell.

xshapira avatar xshapira commented on July 28, 2024

@xshapira FYI, before I update, You can use aishell by doing following:

  1. You can visit https://chat.openai.com/api/auth/session to get the access token
  2. and manually set access token into the json file (~/.aishell_config.json)

I followed your instructions but got this error (have the same issue with the younger brother of this project, YGK-a):

Screen Shot 1

from aishell.

code-yeongyu avatar code-yeongyu commented on July 28, 2024

it definetely looks like because of the version of revchatgpt, i am going to bump up that.

from aishell.

code-yeongyu avatar code-yeongyu commented on July 28, 2024

Just released new version with version up. Guess now it's gonna work.

Plus, if you have further issues with YGK-a, please issue it on YGK-a. Thanks!

from aishell.

xshapira avatar xshapira commented on July 28, 2024

Just released new version with version up. Guess now it's gonna work.

Plus, if you have further issues with YGK-a, please issue it on YGK-a. Thanks!

Works like a charm! Thank you πŸ‘

from aishell.

Related Issues (16)

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.