coderabbitai/ai-pr-reviewer

429 error

kenchambers opened this issue · 1 comments

Greetings!

I am getting a 429 error, even though i have an upgraded account.

It seemed to have errored out the first try: I can provide more context if needed.

summary_token_limits: max_tokens=3900, request_tokens=2900, response_tokens=1000
review_token_limits: max_tokens=3900, request_tokens=2900, response_tokens=1000
api_base_url: https://api.openai.com/v1
Will review from the base commit: 602751d56e098eb78f2979002523f50f9ec31aee
checking path: src/bots/mean-reversion.ts => true
checking path: src/index.ts => true
checking path: src/live-trader.ts => true
checking path: types/common/index.d.ts => true
Warning: Function failed on try 1, retrying...
Warning: Function failed on try 2, retrying...
Warning: Function failed on try 3, retrying...
Warning: Function failed on try 4, retrying...
response: undefined, failed to send message to openai: Error: OpenAI error 429: {
    "error": {
        "message": "Rate limit reached for default-gpt-3.5-turbo in organization org-QXJc6SeBWFeCFjGmKVlmbaI1 on requests per min. Limit: 3 / min. Please try again in 20s. Contact support@openai.com if you continue to have issues. Please add a payment method to your account to increase your rate limit. Visit https://platform.openai.com/account/billing to add a payment method.",
        "type": "requests",
        "param": null,
        "code": null
    }
}

I added exp backoff retry logic in #265. See if this works for you.