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

openAi too many requests error #111

Open
VadneyK opened this issue Jul 3, 2024 · 1 comment
Open

openAi too many requests error #111

VadneyK opened this issue Jul 3, 2024 · 1 comment

Comments

@VadneyK
Copy link

VadneyK commented Jul 3, 2024

ⓧ ERROR | 2024-07-02 21:17:25 | readmeai.core.models | Error making request for - overview: 429, message='Too Many Requests', url=URL('https://api.openai.com/v1/chat/completions')

this sort of error message repeats over and over.

API calls need a sleep() in between to not get rate limited by OpenAI?

@gp-1108
Copy link

gp-1108 commented Aug 27, 2024

Just hopping in to say that I have the exam same issue.
I tried to change the -rl flag down to 1 but it did not fix the issue.

It might be related to open ai api rate limits. Specifically I am on Free Tier. Nevertheless, I should have access to 3 requests per minute to gpt-4o-mini.

I can see from the logs of the file that actually the readmeai tool is capable of doing those 3 requests, it just won't stop try to make more once he is done with the first 3.

The -rl flag does not seems to have an impact on the actual behaviour of the library. If I'll get some spare time I'll have a look into it

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

No branches or pull requests

2 participants