Skip to content
1 min read · 134 words

Interface: ChatCompletionsRetryConfig

Defined in: batteries/llm/chat_common/types.ts:250

Retry/backoff configuration for a Chat-family battery's HTTP requests.

Properties

PropertyTypeDescriptionDefined in
baseDelayMs?numberBase delay in milliseconds for the first retry; doubles each attempt.batteries/llm/chat_common/types.ts:254
honorRetryAfter?booleanWhether to honour a server Retry-After header in place of computed backoff.batteries/llm/chat_common/types.ts:260
maxAttempts?numberMaximum number of attempts (including the first) before giving up.batteries/llm/chat_common/types.ts:252
maxDelayMs?numberUpper bound in milliseconds on any single backoff delay.batteries/llm/chat_common/types.ts:256
retriableStatuses?number[]HTTP status codes that trigger a retry.batteries/llm/chat_common/types.ts:258