Skip to content
1 min read · 134 words

Interface: ChatCompletionsRetryConfig

Defined in: src/batteries/llm/chat_common/types.ts:481

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.src/batteries/llm/chat_common/types.ts:485
honorRetryAfter?booleanWhether to honour a server Retry-After header in place of computed backoff.src/batteries/llm/chat_common/types.ts:491
maxAttempts?numberMaximum number of attempts (including the first) before giving up.src/batteries/llm/chat_common/types.ts:483
maxDelayMs?numberUpper bound in milliseconds on any single backoff delay.src/batteries/llm/chat_common/types.ts:487
retriableStatuses?number[]HTTP status codes that trigger a retry.src/batteries/llm/chat_common/types.ts:489