Loading...
Loading...
Anthropic rolled out matching beta features in May 2026 across its Python (v0.104.0) and TypeScript (v0.98.0) SDKs to estimate token counts for streaming "thinking" block deltas via a new thinking-token-count API. Aimed at real-time and streaming use cases, the feature provides finer-grained, intermediate token accounting to help developers manage costs, monitor usage, and tune performance or UI behavior for latency-sensitive applications. Published in each SDK’s GitHub repo and flagged as beta, the updates reflect incremental observability improvements and targeted tooling for teams building production streaming experiences with Anthropic models.
Developers building real-time, streaming, or latency-sensitive applications need finer-grained token accounting to manage cost, monitor usage, and tune performance or UI. Anthropic's beta streaming token estimation adds observability and tooling that can be integrated into production streaming flows.
Dossier last updated: 2026-05-30 08:34:58
Anthropic published anthropic-sdk-typescript v0.100.1 on May 29, 2026, a minor release that fixes a streaming bug by ensuring encrypted_content is carried on beta compaction blocks and updates client lockfiles to properly depend on standardwebhooks. The patch addresses a specific streaming edge case (issue #1025) and includes small dependency hygiene (lockfile) chores, indicating maintenance-focused improvements rather than new features. This matters for developers integrating Anthropic’s SDK in TypeScript projects because it patches potential data/streaming integrity issues and keeps dependency metadata correct, reducing build or runtime problems for applications using the SDK.
Anthropic’s open-source Python SDK for its AI services released patch v0.105.1 on May 29, 2026, a minor maintenance update that switches PyPI publishing to use Trusted Publishing. The changelog indicates this is a chore-level internal change, not a feature or API update. It matters to developers and organizations that integrate Anthropic models because Trusted Publishing can improve package provenance and supply-chain security for Python distributions. The release underscores ongoing maintenance of the anthropic-sdk-python repository and signals attention to build and release integrity for downstream users relying on the package via PyPI.
Anthropic’s TypeScript SDK hit v0.100.0 on May 28, 2026, introducing support for the new claude-opus-4-8 model, mid-conversation system blocks, and a usage.output_tokens_details field for token-level usage reporting. The release, published by contributor stainless-app, also includes a minor documentation fix to handle literal newlines. These changes matter to developers integrating Claude models into apps: the new model variant potentially offers updated capabilities or performance, mid-conversation system blocks give finer control over ongoing interactions, and detailed token usage enables more granular monitoring and cost tracking. The update continues the SDK’s incremental evolution for TypeScript clients of Anthropic’s APIs.
Anthropic published version v0.105.2 of its anthropic-sdk-python on May 29, 2026, marking a new patch release for the SDK used to access Anthropic’s API. The GitHub release notes point to a changelog diff from v0.105.1 to v0.105.2 and list a small set of assets; the release was authored by a user or maintainer named stainless-app. This incremental update matters to developers and companies integrating Anthropic models because SDK patches can include bug fixes, dependency updates, or minor API tweaks that affect stability and compatibility in production systems. Users should review the full changelog and test before upgrading.
Anthropic released version v0.104.0 of its anthropic-sdk-python on May 21, 2026, introducing a beta feature that estimates token usage in streaming "thinking" block deltas via a new thinking-token-count API support. The changelog notes this feature targets improved token estimation for streaming responses, which can help developers manage costs and observability when integrating Anthropic models. The update is published in the project’s GitHub repository and appears aimed at SDK users building real-time or streaming applications. This matters for developers and platform engineers who need accurate token accounting for billing, performance tuning, and latency-sensitive AI features.
Anthropic released version 0.98.0 of its TypeScript SDK on May 21, 2026, adding a beta feature that estimates token counts within "thinking" block deltas when streaming via a new thinking-token-count API. The update is published in the anthropic-sdk-typescript repository and is tagged sdk-v0.98.0; maintainers reference the full changelog comparing v0.97.1 to v0.98.0. This change matters to developers integrating Anthropic models because it provides finer-grained, streaming-aware token accounting for intermediate "thinking" outputs, which can improve usage monitoring, cost estimation, and real-time UI behavior in applications using Anthropic's API. The release indicates ongoing incremental SDK improvements and beta testing of observability features.