Skip to content

Use Access Token instead of Session Token #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
code-yeongyu opened this issue Apr 11, 2023 · 1 comment · Fixed by #56
Closed

Use Access Token instead of Session Token #55

code-yeongyu opened this issue Apr 11, 2023 · 1 comment · Fixed by #56

Comments

@code-yeongyu
Copy link
Owner

code-yeongyu commented Apr 11, 2023

This issue contains the content of #52:

As a solution of this, I am thinking of:

1. Update config json like following
  ```json
{
    "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
@code-yeongyu
Copy link
Owner Author

I am thinking of accomplish this by adopt this method to ygka and have ygka as dependency like I have mentioned in #49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant