Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 679 Bytes

errors.md

File metadata and controls

17 lines (13 loc) · 679 Bytes

Errors

← back to README

All recoverable failures inherit from LLMError:

Class When Retryable
NetworkError Below-HTTP transport error yes
TimeoutError Connect/read timeout yes
RateLimitError HTTP 429 (carries retry_after_seconds) yes
AuthError HTTP 401 / 403 no
ProviderError Other 4xx/5xx (carries status_code) depends on class
ImageFetchError Image download failed after retries no
ValidationError Response didn't match pydantic schema no

In a batch, these become BatchResult.error. Outside a batch, they're raised from invoke() and invoke_stream().