Rate limit error (429) with retry metadata. Thrown when the LLM provider's rate limit is exceeded.

Hierarchy (view full)

Constructors

Properties

model?: string
provider?: string
originalError?: Error
code = 429

Methods

  • Check if an error is a rate limit error (works with any provider's error)

    Parameters

    • error: unknown

    Returns boolean