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

in split_and_upload() catch the rate_limit_exceeded error and retry w/ exponential backoff. #32

Open
KastanDay opened this issue Aug 9, 2023 · 0 comments

Comments

@KastanDay
Copy link
Member

This is caused by mp3/video uploads that fail cuz of text-ada-002 rate limits.

2023-08-09 18:17:14,761:INFO - error_code=rate_limit_exceeded error_message='Rate limit reached for default-text-embedding-ada-002 in organization org-UBbqlRTzKdhq7mpz97JI0deV on tokens per min. Limit: 1000000 / min. Current: 717621 / min. Contact us through our help center at help.openai.com if you continue to have issues.' error_param=None error_type=tokens message='OpenAI API error received' stream_error=False

500 {'error': {'message': 'The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID 06916d5ee6da8db54c8fd6d438f1dca1 in your email.)', 'type': 'server_error', 'param': None, 'code': None}} {'Date': 'Wed, 09 Aug 2023 18:17:04 GMT', 'Content-Type': 'application/json', 'Content-Length': '366', 'Connection': 'keep-alive', 'access-control-allow-origin': '*', 'openai-organization': 'caii-1', 'openai-processing-ms': '4404', 'openai-version': '2020-10-01', 'strict-transport-security': 'max-age=15724800; includeSubDomains', 'x-ratelimit-limit-requests': '3000', 'x-ratelimit-limit-tokens': '1000000', 'x-ratelimit-remaining-requests': '2999', 'x-ratelimit-remaining-tokens': '36408', 'x-ratelimit-reset-requests': '20ms', 'x-ratelimit-reset-tokens': '57.815s', 'x-request-id': '06916d5ee6da8db54c8fd6d438f1dca1', 'CF-Cache-Status': 'DYNAMIC', 'Server': 'cloudflare', 'CF-RAY': '7f41fe49ac2bc51d-SEA', 'alt-svc': 'h3=":443"; ma=86400'}.
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