Anthropic Python SDK v1.4.0 Adds Usage Reporting Details and Compliance Settings
sdkaigaengineer
feature patch
Anthropic has released version 1.4.0 of its Python SDK, introducing several new capabilities for developers. This update enhances usage reports with Claude Tag categories and user breakdowns, providing more granular insights into API consumption. It also adds named types for organization compliance settings, improving clarity and management for enterprise users. Furthermore, the SDK now supports sending a workspace ID on additional endpoints, alongside fixes for client error handling and message resource merging.
- →add Claude Tag category and user breakdowns to usage reports
- →add named types for organization compliance settings state
- →add support for sending a workspace ID on more endpoints
- →raise a clear error when an httpx object is passed instead of an httpx2 one
- →repair custom-code merge in messages resources
Features (3) ›
- api add Claude Tag category and user breakdowns to usage reports
- api add named types for organization compliance settings state
- api add support for sending a workspace ID on more endpoints
Fixes (2) ›
- client raise a clear error when an httpx object is passed instead of an httpx2 one
- repair custom-code merge in messages resources
Maintenance (9) ›
- examples refresh platform model IDs
- internal bundle the mock server spec and update dev tooling
- internal clean up code comments
- internal fix mypy unreachable error in detect-breaking-changes script
- internal narrower codeowners scope
- internal revert codeowners change
- tests remove stale warning filters
- tests reword the skip reason on the path-level query param tests
- api update a few doc strings
Read the original announcement →
https://github.com/anthropics/anthropic-sdk-python/releases/tag/v1.4.0
Related releases
- Claude Code v2.1.261 Enhances Diagnostics, Output Limits, and Fixes Bugs Claude Code Releases ·
- ant CLI v1.30.0 adds `apply` command for managing Claude resources as code Claude Platform Release Notes ·
- Anthropic Claude Code v2.1.260 Introduces Diff Panel and Numerous Fixes Claude Code Releases ·
- Anthropic Claude Code v2.1.259 Adds Managed Settings, GitLab MR Recognition, and Bug Fixes Claude Code Releases ·
- Claude Code 2.1.258 Fixes macOS 12 Launch Issue and Session Failures Claude Code Releases ·
- Anthropic Launches Claude Fable 5.1 and Mythos 5.1 Claude Release Notes ·