flutter_chatgpt_api
flutter_chatgpt_api copied to clipboard
Handling 403 errors when recovering the session
- Removed dart SDK version limitation < 3
- User agent management review
- Update of the README for user agent
fix #4
@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?
@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 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.
Hi @sgraton thank you for your PR. How did you solve " {"detail":"Too many requests in 1 hour. Try again later."}" problem.
@sgraton There were some updates in the open AI API and now it throws an exception which says Failed to refresh auth token