Skip to content
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

Handling 403 errors when recovering the session #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sgraton
Copy link

@sgraton sgraton commented Dec 21, 2022

  • Removed dart SDK version limitation < 3
  • User agent management review
  • Update of the README for user agent

@sgraton
Copy link
Author

sgraton commented Dec 21, 2022

fix #4

@aytunch
Copy link

aytunch commented Dec 23, 2022

@sgraton thanks for this PR. Does this help us use the package in flutter web?
Also where do we get the clearance token and user agent? Should we get them from Chrome/dev tools also?
Any help is appreciated. Thanks.
Also @coskuncay will this PR be merged to main?

@aytunch
Copy link

aytunch commented Dec 23, 2022

@sgraton Hi, I see that you are making additions to the PR
Can I try the current state of this PR using as follows, thanks:

flutter_chatgpt_api:
    git:
      url: https://github.com/sgraton/flutter_chatgpt_api

@sgraton
Copy link
Author

sgraton commented Dec 23, 2022

@sgraton thanks for this PR. Does this help us use the package in flutter web? Also where do we get the clearance token and user agent? Should we get them from Chrome/dev tools also? Any help is appreciated. Thanks. Also @coskuncay will this PR be merged to main?

This PR does not help on the web flutter part, I did not take a look to this issue.
Clearence_token retrieves from cookies (shown in README) and user-agent in any network request in Chrome dev tools.
Last addition only add a debug mode with more logs.

@coskuncay
Copy link
Owner

Hi @sgraton thank you for your PR. How did you solve " {"detail":"Too many requests in 1 hour. Try again later."}" problem.

@wal33d006
Copy link

@sgraton
There were some updates in the open AI API and now it throws an exception which says Failed to refresh auth token

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 this pull request may close these issues.

None yet

4 participants