
What's New: v0.83.0
What's New in v0.83.0: Automatic Caching and More Introduction to the Release The latest release, v0.83.0, brings exciting new features to the Anthropics SDK Python package. In this tutorial, we'll dive into what's new, how to use the new features, and why developers should care. Top-Level Cache Control (Automatic Caching) The highlight of this release is the introduction of top-level cache control, also known as automatic caching. This feature allows users to leverage caching mechanisms without writing explicit cache-related code. To understand how this works, let's take a look at an example: from anthropic_sdk.api import Client # Create a client instance with auto-caching enabled client = Client ( auto_caching = True ) # Make API calls as usual response = client . get ( " /endpoint " ) In the above code snippet, we've created a Client instance with auto_caching set to True . When making subsequent API calls using this client, caching will be automatically applied. The cache will stor
Continue reading on Dev.to Tutorial
Opens in a new tab



