User-facing changes to this SDK are recorded here. History starts at the
existing 0.1.0 release; earlier development prereleases are not listed.
- Export
RequestTooLargeErrorfor HTTP 413 andOverloadedErrorfor HTTP 529 fromqcaandqca.common, matching Anthropic's Python SDK. - Add
_strict_response_validation=Trueto all four clients to require Pydantic validation of responses, including pagination and SSE. The setting is retained bywith_optionsand response views.
- Breaking: Responses now use lenient model construction by default, matching Anthropic's Python SDK. Unexpected field types are preserved instead of raising
APIResponseValidationError; nested models, extra fields, and request IDs remain available. Enable_strict_response_validation=Trueto retain the previous schema validation behavior. Invalid JSON and invalid download URLs still raise in either mode. - Breaking: HTTP 529 now raises
OverloadedError, which inherits directly fromAPIStatusError, rather thanInternalServerError. Callers catchingInternalServerErrorfor overloads should also catchOverloadedErroror useAPIStatusError. - Honor positive
Retry-AfterandRetry-After-Msdelays above 60 seconds, capped at 4,294,967 seconds. Zero and negative delays use exponential backoff; numeric millisecond headers take precedence. Retry eligibility is unchanged. - Forward and Managed clients, both synchronous and asynchronous, now default to a 5-second connection timeout and 600-second read, write, and connection-pool timeouts, matching Anthropic's Python SDK. SSE streams can continue beyond 10 minutes while data keeps arriving within the read timeout.
- Forward and Managed: synchronous and asynchronous clients with typed requests and responses.
- Support pagination, SSE streaming, and file transfer on Python 3.10 and newer.