[KongchangAI]
· 3 min read· 1,503 words

AI SDK Batch Update: Speech Translation APIs Go Stable and Anthropic Capability Corrections

AI SDK Batch Update: Speech Translation APIs Go Stable and Anthropic Capability Corrections

AI SDK batch release: speech APIs go stable, Anthropic and other providers correct model capability declarations.

This release PR opened by Vercel AI SDK via Changesets spans the main package and dozens of provider packages, with substantive changes concentrated in two areas. First, speech capabilities go stable: streamTranscription and streamSpeechTranslation along with related types and provider shortcuts drop the experimental prefix, with old names downgraded to deprecated aliases; streaming error propagation (mounting provider errors to cause) and retry strategy (exponential backoff, respecting retry headers, aborting on cancellation) are fixed in the same batch. Second, the Anthropic provider systematically corrects the Claude capability table, covering thinking mode conversion, effort levels, fast-mode, structured output limitations, etc., and hides Opus 4.0/4.1 and Sonnet 4.0. The article also records the Alibaba resolution tier case fix, the SubQ provider debuting as a major version, harness layer refactoring, and parallel tool call result ID fixes, noting that "precisely declaring capabilities per model ID" is becoming the most burdensome work at the provider layer.

What's Hiding in a Typical Changesets Release

The version number @ai-sdk/zai@3.0.61 isn't newsworthy on its own—it's just one of the packages in a release PR that Vercel AI SDK automatically opens via Changesets. But the diff of this PR covers a lot of ground: the main package ai@7.0.187, the gateway, and provider packages for Anthropic, Google, Alibaba, Cerebras, Cohere, DeepSeekAd, Groq, and others all get bumped along with it. For people building applications with AI SDK, there are two things in this update worth calling out separately: the large-scale promotion of speech-related APIs to stable, and a systematic correction of the model capability table in the Anthropic provider.

Changesets is a version management and release tool commonly used for monorepos in the JavaScript ecosystem. When developers commit code, they attach a changeset file declaring the affected packages and the change level (patch, minor, major). The release process automatically aggregates these changesets, calculates new version numbers for each package, updates the CHANGELOG, and opens a release PR. Multi-package repositories like AI SDK have each package versioned and released independently, so the diff of a single release PR often spans dozens of packages, but the substantive changes may be concentrated in just a few places. When reading, you need to distinguish between "version number linkage" and "actual changes."

A provider in AI SDK refers to the adapter layer that connects to a particular model vendor's service. Each provider package encapsulates that vendor's API differences and exposes a unified model interface. The main package ai provides the core abstractions, while provider packages handle the specific implementations. This layering means adding a new vendor doesn't require modifying the main package.

Speech Capabilities Move from Experimental to Stable

Three APIs Drop the experimental Prefix

The most substantive change in the main package ai@7.0.187 is the promotion of speech-related interfaces to stable APIs:

  • streamTranscription (formerly experimental_streamTranscribe) and the TranscriptionModelV4Stream* provider types go stable, with the experimental names retained as deprecated aliases.
  • streamSpeechTranslation (formerly experimental_streamTranslate), StreamSpeechTranslationResult, SpeechTranslationStreamPart, the OpenAI and Google speech translation model exports, and the speechTranslation() provider shortcut method are all promoted together. translation() and the experimental names are likewise downgraded to deprecated aliases.

This means speech transcription and speech translation are no longer "experimental features whose signatures could change at any time." For production environments, the barrier to integrating these two pipelines into your business is significantly lowered.

The Engineering Details Behind the Promotion

Two practical issues in streaming processing were also fixed in the same batch. First, NoTranscriptGeneratedError and NoTranslationGeneratedError now attach the provider error to cause—when a streaming transcription ends after receiving an error chunk without producing a result, consumers can distinguish between "the provider is down" and "there's genuinely nothing transcribable in the audio." These two situations require completely different handling strategies.

Second, stream retries now use exponential backoff and respect the retry header returned by the provider, including retries triggered by callbacks. When a request or stream is cancelled, pending retries are also aborted. Speech streaming scenarios are latency-sensitive, and blind retries would amplify problems. This change makes retry behavior more controllable.

The official release scattered these changes across multiple provider packages—AssemblyAI, Azure, Cartesia, Deepgram, ElevenLabs, Google, Google Vertex, Gateway, and others—showing that the promotion isn't a trial run for a single provider but a unified rollout.

Stabilizing a streaming API is not just about removing the experimental prefix. "Stable" typically means: function signatures are frozen, type names no longer change, deprecated paths have a clear migration window, and behavioral semantics (including edge cases like errors, cancellation, and retries) are explicitly defined. The experimental phase allows signatures to change at any time, and once production code depends on them, upgrades can cause compilation failures or silent behavioral changes. Speech scenarios also add real-time constraints—streaming transcription produces results while receiving audio, and error propagation, cancellation propagation, and retry pacing during mid-stream failures all need separate design. This is why this batch of changes mounts errors onto cause and switches retries to exponential backoff in the same release as the promotion.

Exponential backoff means the wait time for each retry grows by a multiplier (e.g., 1s, 2s, 4s), avoiding continued pressure from high-frequency retries during server-side anomalies. Respecting the provider-returned retry header lets the server dictate the backoff pace, which is more aligned with actual rate limiting than a local fixed strategy.

A models Factory Bug Fixed Along the Way

The ai package also fixed a model resolution issue: when resolving model IDs, the speech translation, video, and reranking model factories now call the default provider as the receiver. Previously, providers implemented as classes and relying on instance state would fail. If you've written object-oriented provider wrappers, this fix might correspond exactly to a pitfall you've encountered.

Anthropic Provider Capability Table Correction

Re-audited Claude Capabilities

The changelog for @ai-sdk/anthropic@4.0.113 is remarkably direct: correct audited Claude capabilities. Specifically—for Opus 4.7, Opus 4.8, Opus 5, and Sonnet 5, convert rejected budget thinking to adaptive thinking; declare verified effort levels and fast-mode support; add documentation of computer protocol and structured output limitations; and correct support status for sampling, compaction, task-budget, inference-geography, and mid-conversation system messages.

At the same time, Opus 4.0, Opus 4.1, and Sonnet 4.0 are hidden from the published model catalog, though request settings are retained. The changelog candidly states: the historical capabilities of these models cannot be re-verified and may be outdated.

Why Capability Declarations Matter

AI SDK's model capability declarations aren't just documentation—they directly determine whether the SDK sends certain parameters when constructing requests and whether certain call forms are allowed. When the capability table is wrong, at best requests are rejected by the provider; at worst parameters are silently dropped and generated results don't match expectations. The Alibaba provider fix this time is a perfect example: lowercase resolution tiers (720p, 1080p, 480p) were previously unrecognized. On wan2.6 image-to-video, they were sent as-is and rejected by the API with "resolution 720p is not supported"; on wan2.7 and wan3, they were silently dropped and fell back to the model's default resolution. Now tiers that differ only in letter case are sent in the API's expected form.

Looking at these two changes together reveals a main thread in AI SDK right now: as more models and modalities are integrated, "accurately declaring capabilities for each model ID" is becoming the most burdensome and error-prone work at the provider layer. Cerebras, Cohere, DeepSeek, Fireworks, and Groq are all doing the same thing in this batch of updates—splitting model capability declarations by model ID.

In AI SDK's abstraction, the model capability table is metadata describing "which parameters and call forms this model ID supports." When constructing requests, the SDK uses this table to decide whether to include fields like temperature, thinking budget, and structured output configuration. When the table doesn't match the real service, two types of failures occur: first, the SDK sends parameters the server doesn't accept, causing request errors; second, the SDK proactively omits fields it could have used, silently degrading functionality.

This also explains why providers are densely "splitting capability declarations by model ID" in the same batch of updates—models of different generations from the same vendor vary greatly in capability, and coarse-grained declarations at the vendor or series level are bound to be wrong, so they can only be maintained per model. This kind of work is high-volume, easy to miss, and errors often only surface during real calls, making it a long-term maintenance cost at the provider layer.

New Faces and Other Notable Changes

SubQ Provider Debuts as a Major Version

@ai-sdk/subquadratic@3.0.0 is released as a major version, adding the SubQ provider with language and decision model types. Although this release doesn't elaborate on details, the decision model category is uncommon among other providers and worth following up on.

Minor Refactoring in the harness Layer

@ai-sdk/harness moves utility functions that were mistakenly placed in the harness/v1 layer to the harness/utils layer, and the series of harness packages (claude-code, cline, codex, cursor, deepagents, github-copilot, grok-build, opencode, etc.) are bumped accordingly. harness-acp adds support for custom ACP extension methods required by adapters, and harness-cursor declares subagent support and a custom cursor/task ACP extension method.

Gateway and Tool Result IDs

@ai-sdk/google fixed a detail with server-side tool results: it now uses toolResponse.id directly to ensure IDs are distinguished between parallel tool calls. ID mix-ups during parallel calls are a class of problem that takes a lot of time to troubleshoot.

Upgrade Recommendations

If you're using AI SDK's speech transcription or translation, it's worth following this update: the experimental APIs still work but are now deprecated aliases, so migrating to streamTranscription and streamSpeechTranslation sooner is safer. If you rely on Anthropic's thinking budget or fast-mode, this capability table correction is worth checking against your existing parameters to see if they'll hit unsupported paths. As for Opus 4.0/4.1 and Sonnet 4.0 being hidden from the catalog, this only affects scenarios where models are discovered through the catalog; requests that specify IDs directly are unaffected.

#AI SDK#Vercel AI SDK#Anthropic#Claude#speech translation#streamTranscription#model capabilities#provider#exponential backoff#Changesets
Share:

Related articles