OpenAI retry count callback

I am using SQLite dB answer retrieval using Lang chain model and ChatGPT. if the billing limit reached, chat gpt show a message,
“Retrying langchain.llms.openai.completion_with_retry.._completion_with_retry in 4.0 seconds as it raised RateLimitError: You exceeded your current quota, please check your plan and billing details.”
retry count is 5 by default, is there a way to override this limit. because it takes almost 30-40 seconds to complete the retry. It only throws exception after the completion of retry. [You exceeded your current quota, please check your plan and billing details.]

An account that is only using trial credits and has no billing method or prepayments is very limited in the request rate allowed: three per minute.

This can be lifted by entering a payment method to purchase account credits. After 48 hours following purchase, up to 50 per second.

1 Like