rotemweiss57/gpt-newspaper

Rate limit exceeded error - Any way to set the rate limit ?

prabha-git opened this issue · 3 comments

raise self._make_status_error_from_response(err.response) from None

openai.RateLimitError: Error code: 429 - {'error': {'message': 'Rate limit reached for gpt-4 in organization org-********** on tokens per min (TPM): Limit 10000, Used 9348, Requested 5086. Please try again in 26.604s. Visit https://platform.openai.com/account/rate-limits to learn more.', 'type': 'tokens', 'param': None, 'code': 'rate_limit_exceeded'}}

I had the same problem, several times. I attributed it to having only a tier 1 API account.

1x-eng commented

It's an interesting project, but it needs a fix for the above-mentioned "Rate limit reached" error. Understandably, this depends on the API user's tier account, but if this is made obvious via configuration or by limiting the number of topics, etc., it'll lead to better UX.

Hi all. I agree and will work on a better approach. Feel free to contribute!