Class ContextWindowExceededError

Thrown in place of a call whose request does not fit the model's context window: the size check refused to send it, so it carries no HTTP status. Its code is retryable, so a fallback walk starts at once, and the provider health registry never records it.

Hierarchy

  • Error
    • ContextWindowExceededError

Constructors

Properties

code: "CONTEXT_WINDOW_EXCEEDED" = CONTEXT_WINDOW_EXCEEDED_CODE
provider: string
model: string
contextWindow: number
estimatedInputTokens: number
outputTokens: number