-
Notifications
You must be signed in to change notification settings - Fork 719
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
Running Github Action: openai.error.RateLimitError #104
Comments
Just tested with another smaller repo, still no luck 😢 |
Hi Can you check your rate limits under https://platform.openai.com/account/rate-limits and check the values for gpt-3.5-turbo and gpt-4? We'll add handling for OpenAI rate limits soon, and probably fallback to gpt-3.5-turbo in case of small rate limit or unavailability of gpt-4 |
Could be that 40K is too small when the diff is moderate. I merged the PR, can try again and see if the retry policy helps? |
unfortunately still the same issue. What TPM do you have and how did you get it? Any more ideas? @okotek |
Did you also check your token usage at https://platform.openai.com/account/usage? I'm curious if an unexpectedly high number of tokens or a burst of requests was used. |
No real spike visible in the usage dash, but thanks for the info! @KalleV |
Nice, that's good to know. What if you click through the language model usage metrics? On my page, I saw a few show up with quite a few tokens like this one:
|
#117 fallback models implementation |
Got the same error. Seems the error is from github actions and not OpenAI API. I could be wrong.
|
Hello, please see https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limits-for-requests-from-github-actions as a fastest response I would suggest adding an exception to make message rather then fail in pr_processing.py
If you want, i can take this. for this small patch and would love work on more robust solution to find way to overcome this problem Best regards |
I think I managed to quickly replicate the error from the OP right in the https://platform.openai.com/playground while testing PR responses for a PR equivalent to ~4800 tokens (GPT4):
|
It is fixed for me. Thank you for all your contributions ❤️ |
Hey, i get the following error when runnung PR-Agent as Github Action. I follow the installation steps.
During the "PR Agent action step" I get the following error. Important to note that there is only one open PR at the time. I also checked to run API calls with the same OpenAI key and it works with no problems.
Sorry for the big stacktrace but maybe it helps :
Please let me know what is the issue here, thanks. Love the project!
The text was updated successfully, but these errors were encountered: