[KongchangAI]
· 2 min read· 1,301 words

Major AI SDK Update: Speech Translation and Transcription Graduate to Stable, Multi-Vendor Capability Corrections

Major AI SDK Update: Speech Translation and Transcription Graduate to Stable, Multi-Vendor Capability Corrections

AI SDK graduates speech translation and transcription APIs to stable and corrects multi-vendor model capability declarations.

The AI SDK released an update spanning multiple core packages, centered on stabilization. ai@7.0.187 graduates streamSpeechTranslation and streamTranscription from experimental to stable, keeps old names as deprecated aliases, and graduates the speech translation provider shortcut. The same package fixes receiver invocation in speech translation, video, and reranking model factories, introduces exponential backoff with server retry headers for streaming retries, and distinguishes provider failures from empty output via cause. The Anthropic provider systematically recalibrates Claude model capabilities and hides some legacy model IDs while retaining request configs. Cerebras, Cohere, DeepSeek, Fireworks, and Groq now declare capabilities per model ID, and Google and Alibaba fix tool result IDs and video resolution tier casing. A new SubQ provider package is added, and the harness family completes a directory restructure.

Major AI SDK Update: Speech Translation and Transcription Graduate to Stable, Multi-Vendor Capability Corrections

rss source: @ai-sdk/typesafe-ai@3.0.46: Version Packages (#25662)

The AI SDK's release cadence has always been intense, and this version PR auto-generated by Changesets bundles changes across multiple core packages in one go. From ai@7.0.187 to patch updates for each provider, the content covers feature graduation, capability corrections, and stability fixes. For developers building multimodal applications on top of the AI SDK, these changes are worth examining one by one.

Core Package ai@7.0.187: Speech Capabilities Officially Graduate

The most prominent change in this update is that the two streaming APIs, streamSpeechTranslation and streamTranscription, move from experimental status to stable. The former was originally named experimental_streamTranslate and the latter experimental_streamTranscribe; now, along with StreamSpeechTranslationResult, SpeechTranslationStreamPart, and the OpenAI and Google speech translation model exports, they have shed their experimental labels.

The old names were not deleted outright but retained as deprecated aliases, meaning existing code won't break immediately, but the migration window has opened. At the same time, the speechTranslation() provider shortcut method also reaches stable status, with translation() continuing to exist as a deprecated alias. For teams relying on speech-to-text or real-time translation, this is a clear signal: the shape of these APIs has converged, and it's safe to commit them to production.

Model Factory Invocation Fix and Retry Strategy Optimization

The ai package also fixed an easily overlooked but wide-reaching issue: when resolving model IDs, the speech translation, video, and reranking model factories now invoke with the default provider as the receiver. Previously, class-based providers would fail as soon as they read instance state, and this fix directly eliminates that class of errors.

The retry logic for streaming requests has also been enhanced. The new implementation introduces exponential backoff and respects the server-returned retry response headers, and callback-driven retries apply as well. When a request or stream is cancelled, the retry wait is aborted immediately. Alongside this, NoTranscriptGeneratedError and NoTranslationGeneratedError now attach the provider error to cause, allowing consumers of the result promise to distinguish between "the provider is down" and "the audio simply produced no output."

Exponential backoff is a retry strategy in which the wait time grows by a fixed multiplier (commonly powers of 2) after each failure, usually with added random jitter to avoid a "thundering herd" where many clients retry at the same moment. In streaming request scenarios, it has a noticeable impact on end-to-end latency and connection stability. Respecting server retry response headers (such as Retry-After) means the client doesn't blindly retry on its own schedule but adopts the server's suggested wait duration, which is especially important when rate limiting is triggered or the server is overloaded. Combined with cancellation signals that can interrupt the wait immediately, this prevents the SDK from spinning in the background after the user has already abandoned the request.

Anthropic Provider: A Thorough Model Capability Audit

The changes in @ai-sdk/anthropic@4.0.113 are quite prominent in this release, essentially a recalibration of Claude model capabilities. For Opus 4.7, Opus 4.8, Opus 5, and Sonnet 5, rejected budget thinking requests are now converted to adaptive thinking; the provider also declares verified effort levels and fast-mode support, and supplements the restrictions on computer protocol and structured output.

Support for sampling, compaction, task-budget, inference-geography, and mid-conversation system messages has also been corrected. One detail: the IDs of Opus 4.0, Opus 4.1, and Sonnet 4.0 are hidden from the public catalog, but request configurations are retained—maintainers explicitly stated that these historical capabilities cannot be re-verified and may be outdated. This "hide but don't delete" approach reflects caution around backward compatibility.

budget thinking and adaptive thinking are two ways Anthropic controls extended thinking. With budget thinking, the caller specifies a token budget cap and the model reasons within that budget; with adaptive thinking, the model decides when and how long to think on its own, no longer requiring the caller to provide a fixed budget. When certain models no longer accept explicit budget parameters, the provider layer translates such requests into the adaptive form, preventing old configurations from erroring out directly after a model upgrade. Effort levels refer to the reasoning effort tiers a model supports, and fast-mode is a response mode biased toward low latency; these are all metadata that the provider must declare precisely, otherwise callers cannot route reliably.

Capability Declaration Refactor Across Multiple Providers

A batch of providers has started moving model capabilities from implicit inference to explicit declaration per model ID. Cerebras, Cohere, DeepSeekAd, Fireworks, and Groq all underwent the same refactor (declaring model capabilities per model ID). The direct benefit of such changes is that callers get more accurate capability metadata when routing or falling back, avoiding placing models that don't support a given capability into paths they shouldn't take.

The Google provider fixed how toolResponse.id is used in server-side tool results, now adopting that ID directly so that IDs remain independent of each other during parallel calls. The Alibaba provider addressed a case-sensitivity issue with video resolution tiers—previously, lowercase 720p, 1080p, and 480p could not be recognized, causing tasks to error out directly on wan2.6 image-to-video, while on wan2.7 and wan3 they were silently dropped and the video was generated at the default resolution. Now tiers differing only in case are sent in the form the API requires, while the WIDTHxHEIGHT format and unsupported tiers behave as before.

Model capabilities typically include boolean or enum fields such as whether tool calling, structured output, image input, and parallel tool calls are supported. Previous implementations often inferred capabilities from naming patterns of model IDs or provider defaults, which led to misjudgments whenever vendors added models or changed naming. With explicit declaration per model ID, the capability table becomes reviewable static data; when the routing layer dispatches a request to a specific model or falls back to an alternate model after a failure, it can first validate whether the target model has the required capability rather than waiting for a runtime error. The cost is that this mapping must be maintained in sync every time a model is added.

New Member SubQ and harness Layer Cleanup

This release introduces a brand-new package, @ai-sdk/subquadratic@3.0.0, debuting as a major version and providing the SubQ provider, including language models and decision models. Starting at 3.0.0 indicates that its API is not yet pursuing stability, and early adopters should watch for possible breaking changes down the line.

The harness family of packages underwent a unified structural adjustment, moving utility functions mistakenly placed in the harness/v1 layer to harness/utils. harness-acp adds support for custom ACP extension methods required by adapters, while harness-cursor declares subagent capabilities and the custom cursor/task ACP extension method. These changes serve the interoperability layer for coding agent tools and have limited impact on developers using the upper-level SDK directly.

Overall, the main thread of this round of updates is "stabilization": speech capabilities graduating, capability declarations becoming explicit, and error semantics becoming clearer. For production users, it's recommended to prioritize evaluating the migration of the two graduated APIs and to check whether the visibility changes of Anthropic-related model IDs affect existing configurations.

rss source: @ai-sdk/typesafe-ai@3.0.46: Version Packages (#25662)

ACP (Agent Client Protocol) is the protocol layer for communication between coding agents and clients such as editors and IDEs, defining interactions such as sessions, tool calls, and extension methods. The harness family of packages is exactly responsible for adapting different agent implementations to this protocol, so the utility functions within belong to the shared support of protocol adaptation rather than part of the v1 versioned API; migrating them to harness/utils allows the versioned directory to retain only stable interfaces. Custom ACP extension methods (such as cursor/task) allow specific clients to convey vendor-private semantics without changing the protocol core, at the cost of these capabilities not being portable across clients.

#AI SDK#speech translation#streamTranscription#Anthropic#model capabilities#SubQ provider
Share:

Related articles