Upgrading anthropic 0.47 to 0.48
Safe0.47.2 → 0.48.0New1Other1
SafeUpgrade verdict
Only new features and fixes in this range.
In plain terms
- Nothing in this range needs changes to your code. It adds features and fixes.
Must act Nothing to change
No breaking, platform, security or deprecated items in this range.
Nothing in this upgrade needs a code or configuration change.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- added:
export Base64ImageSourceParam - added:
export URLImageSourceParam - added:
export URLPDFSourceParam
- added:
class Base64ImageSourceParam(TypedDict) - added:
field Base64ImageSourceParam.data: Required[Annotated[Union[str, Base64FileInput], PropertyInfo(format=base64)]] - added:
field Base64ImageSourceParam.media_type: Required[Literal['image/jpeg', 'image/png', 'image/gif', 'image/webp']] - added:
field Base64ImageSourceParam.type: Required[Literal['base64']]
- added:
export BetaBase64ImageSourceParam - added:
export BetaURLImageSourceParam - added:
export BetaURLPDFSourceParam
- added:
class BetaBase64ImageSourceParam(TypedDict) - added:
field BetaBase64ImageSourceParam.data: Required[Annotated[Union[str, Base64FileInput], PropertyInfo(format=base64)]] - added:
field BetaBase64ImageSourceParam.media_type: Required[Literal['image/jpeg', 'image/png', 'image/gif', 'image/webp']] - added:
field BetaBase64ImageSourceParam.type: Required[Literal['base64']]
- removed:
class Source(TypedDict) - removed:
field Source.data: Required[Annotated[Union[str, Base64FileInput], PropertyInfo(format=base64)]] - removed:
field Source.media_type: Required[Literal['image/jpeg', 'image/png', 'image/gif', 'image/webp']] - removed:
field Source.type: Required[Literal['base64']] - added:
variable Source: TypeAlias
- added:
class BetaURLImageSourceParam(TypedDict) - added:
field BetaURLImageSourceParam.type: Required[Literal['url']] - added:
field BetaURLImageSourceParam.url: Required[str]
- added:
class BetaURLPDFSourceParam(TypedDict) - added:
field BetaURLPDFSourceParam.type: Required[Literal['url']] - added:
field BetaURLPDFSourceParam.url: Required[str]
- removed:
class Source(TypedDict) - removed:
field Source.data: Required[Annotated[Union[str, Base64FileInput], PropertyInfo(format=base64)]] - removed:
field Source.media_type: Required[Literal['image/jpeg', 'image/png', 'image/gif', 'image/webp']] - removed:
field Source.type: Required[Literal['base64']] - added:
variable Source: TypeAlias
- added:
class URLImageSourceParam(TypedDict) - added:
field URLImageSourceParam.type: Required[Literal['url']] - added:
field URLImageSourceParam.url: Required[str]
- added:
class URLPDFSourceParam(TypedDict) - added:
field URLPDFSourceParam.type: Required[Literal['url']] - added:
field URLPDFSourceParam.url: Required[str]