Skip to content
1 min read · 134 words

Interface: ChatCompletionsRetryConfig

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

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