-
From
Here, I am not sure if I understand what each parameter does. Here, maxRetries, refers to the number of time a same request can be retired, if rate limited. and max Delay is how long for a http connection takes for it to be considered rate-limited? And what does the 'base' value represent? Additionally,
I'm building an OpenAI client for Android, and I want the end users to configure their timeout and retry strategy, as I find 30s default to cause a lot of timeouts for the users. So I wanted to allow users to increase the timeout, will it conflict with the retry strategy? If I have a retry timeout of 120s and a default RetryStrategy with 60s maxDelay, Will it cause long http connection to me considered rate-limited and attempt to retry? I would like a little clarification on this matter. Sorry for the long post. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, the retry delay is equal to the base raised to the power of the retry count. It has a maximum value of maxDelay and is limited by the maxRetries parameter. Indeed, there is a distinction between the delay between retries and the response timeout. The delay between retries refers to the time interval after a failed call before attempting another one, while the response timeout is the maximum duration allowed for waiting to receive a response. |
Beta Was this translation helpful? Give feedback.
Hello, the retry delay is equal to the base raised to the power of the retry count. It has a maximum value of maxDelay and is limited by the maxRetries parameter.
Indeed, there is a distinction between the delay between retries and the response timeout. The delay between retries refers to the time interval after a failed call before attempting another one, while the response timeout is the maximum duration allowed for waiting to receive a response.