The new SDK v0.98.0 adds token estimation during streaming! A significant improvement for developers.
Release of anthropic-sdk-typescript v0.98.0
Original: anthropics/anthropic-sdk-typescript: sdk: v0.98.0
Importance: 新機能追加により、開発者のトークン管理が改善されるため。
Summary
Anthropic has released a new version of its SDK, v0.98.0. The main feature includes beta support for estimating token counts in thinking block deltas during streaming. This change allows developers to perform token calculations more accurately.
Key Points
- Released new SDK version v0.98.0
- Added token estimation feature for streaming
- Contributes to improved accuracy for developers
View developer notes (APIs, breaking changes, migration)
The new SDK version v0.98.0 introduces a beta feature for estimating thinking token counts during streaming. This feature provides estimated token counts for thinking block deltas during API calls. Specifically, developers can now use the `thinking-token-count` API to get real-time token counts during streaming, enhancing the accuracy of token management.
Source: https://github.com/anthropics/anthropic-sdk-typescript/releases/tag/sdk-v0.98.0
Outlet: SDK (anthropic-sdk-typescript)
This article is an AI-generated summary (OpenAI GPT-4o-mini) of publicly available information from Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, Sakana, and other vendors. The original source URL is always provided in accordance with fair-use citation requirements. Summaries are AI-generated and may contain mistranslations or misinterpretations. Always verify details with the original source.