pypi / typesafe-sdk
typesafe-sdk
What changed in typesafe-sdk 0.5 to 0.7, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
3 breaking1 security15 new APIs and options4 behavior and defaults6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inittypesafe-sdk 0.712 changes
Breaking changes 2
Request bodies are compressed with zstd by default; non-official APIs may not support this immediately.
The serialization/deserialization library changed from msgspec to pydantic, which may affect developers relying on the previous library.
Security 1
The API key is validated early, and its value is excluded from logged exceptions.
New APIs and options 4
Assets can be referenced in text with
attach_assets.Box questions and answers are supported.
Image assets can be created from raw bytes, file paths, base64 strings, and PIL objects.
system_one accepts a response_model argument for selecting a pydantic model and adding type-safety.
Behavior and default changes 1
Default settings keep all pooled connections alive for 30 seconds.
Fixes and other changes 4
Non-finite numbers are serialized as strings instead of invalid JSON tokens.
Prevent async client crashes during concurrent TLS connections with truststore<=0.10.4.
Add more request validation checks.
str subclasses are serialized as strings instead of lists of characters.
typesafe-sdk 0.66 changes
Breaking changes 1
Score.criteria now accepts an ordered sequence instead of a dictionary keyed by integers.
Behavior and default changes 3
Error messages now include HTTP details and metadata.
SDK input type annotations now accept abstract types like Mapping.
SDK input type annotations now accept abstract types like Sequence.
Fixes and other changes 2
Exceptions and responses can now be pickled.
Invalid values in RetryPolicy are now handled.
typesafe-sdk 0.511 changes
New APIs and options 11
Use the asynchronous client to make API calls.
Use Choice to define a question with instructions and criteria in a System One request.
Adds the http2 extra to the typesafe-sdk package for HTTP/2 support.
Use Noul to define a question with instructions in a System One request.
Use Score to define a question with instructions and criteria in a System One request.
Call the System One API with state and questions using either SDK client.
Set this environment variable to use the SDK with the TypeSafe API.
The TypeSafe Python SDK is available as a package for making asynchronous or synchronous calls to the TypeSafe API.
Install the pil extra to send Pillow images.
Install the zstd extra to compress request bodies on Python 3.13 and earlier.
Use the synchronous client to make API calls.