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

Catch rate limit error #4

Open
ahbalin opened this issue Jul 12, 2023 · 1 comment
Open

Catch rate limit error #4

ahbalin opened this issue Jul 12, 2023 · 1 comment

Comments

@ahbalin
Copy link

ahbalin commented Jul 12, 2023

Hello,
do you have any idea on how to catch openai.error.RateLimitError and have None in response ?
What I did is a try and except block in make_requests(), but I was wondering if there was another way to handle it, maybe a parameter that I missed somewhere ?
I am already using concurrency as 8, default is 10.
Thanks !

@gigberg
Copy link

gigberg commented Apr 28, 2024

increase wait time or update your account‘s api tier by charge for it.,,or upload jsonl file to batch api (then wait 24h for download result file),

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