Skip to content

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.

4 participants