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

Rate limit error ungracefully handled #4

Open
emooreatx opened this issue Dec 21, 2023 · 0 comments
Open

Rate limit error ungracefully handled #4

emooreatx opened this issue Dec 21, 2023 · 0 comments

Comments

@emooreatx
Copy link

openai.RateLimitError: Error code: 429 - {'error': {'message': 'Rate limit reached for gpt-4-1106-preview in organization org-BLAHBLAHBLAH on tokens_usage_based per day: Limit 1500000, Used 1497556, Requested 20136. Please try again in 16m59.059s. Visit https://platform.openai.com/account/rate-limits to learn more.', 'type': 'tokens_usage_based', 'param': None, 'code': 'rate_limit_exceeded'}}

Error above terminates execution. Ideal behaviour, query user on duration of sleep before resuming execution. No input means to default to 3x the time in the message, so here 45+ minutes

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

1 participant