Repository navigation
DashScope Java SDK v2.23.7 Released: Agent Studio Usage Analytics & Smaller Jars #296
luk384090-cloud
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
📦 DashScope Java SDK v2.23.7 is here
v2.23.7 adds Agent Studio usage analytics to the SDK and makes the distribution jars ~2.4 MB smaller by no longer bundling the Qwen tokenizer vocabulary. No API breaks.
✨ New: Agent Studio usage analytics (#294)
AgentStudioClientnow exposesusage(), with synchronous and asynchronous variants:usage().summary(param)/summaryAsync(param)— aggregated consumption over a time rangeusage().trend(param)/trendAsync(param)— time-series consumption points with paginationYou can query by workspace, agent (
agentId/agentVersion), or session, with configurable time range, granularity, page size, and page token. The same methods are also available on the async client.Pagination for
trend()works withpageToken: takenext_page_tokenfrom the result and set it on the next request's params.🪶 Smaller jars: Qwen vocab is no longer bundled (#293)
The ~2.4 MB
qwen.tiktokenis gone from the distribution jars.QwenTokenizernow resolves the vocabulary at runtime, in this order:DASHSCOPE_QWEN_VOCABenvironment variable (supports~expansion)~/.cache/dashscope/tokenizersThe first use on a clean machine downloads the vocab once and caches it, so expect a short one-time delay. Subsequent runs are fully local.
QwenTokenizerneeds network access on first use. If that's not available, either:DASHSCOPE_QWEN_VOCAB=/path/to/qwen.tiktoken, orqwen.tiktokenon the classpath.🔧 CI & chore
v*tags, gated by themaven-centralenvironment approval;maven-gpg-pluginupgraded to 3.2.7 with loopback pinentry for headless signing, and anautoPublishswitch (defaultfalse) added to the central publishing plugin (Add automated Maven Central release workflow #295)📦 Upgrade
Maven
Gradle
implementation 'com.alibaba:dashscope-sdk-java:2.23.7'🔗 Links
Thanks to @lzsweb, @foleydang, and @luk384090-cloud for this release. Questions or feedback? Reply below.
All reactions