Backport: feat(assemblyai): support universal-3-5-pro and expand the transcription provider (#16548)#16570
Open
gr2m wants to merge 1 commit into
Open
Backport: feat(assemblyai): support universal-3-5-pro and expand the transcription provider (#16548)#16570gr2m wants to merge 1 commit into
gr2m wants to merge 1 commit into
Conversation
…transcription provider (#16548) Backport of #16548 to release-v5.0. Adapted to the v5 provider spec: the transcription model targets TranscriptionModelV2 (not V4). Since TranscriptionModelV2CallWarning has no `deprecated` variant, the best-model and wordBoost/boostParam deprecation warnings are emitted as `type: 'other'` warnings (with the affected setting folded into the message), and tests were adjusted accordingly. The workflow serialize/deserialize hooks from the original PR are omitted (not available in v5). The provider options schema stays inline in the model file, keeping v5's `assemblyaiProviderOptionsSchema` name. Docs/examples keep v5's `experimental_transcribe` import and `examples/ai-core` layout. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #16548 to
release-v5.0.Adaptations for the v5 provider spec
The original PR targets the v7 (
main) provider spec; this backport adapts it to v5:TranscriptionModelV2(notV4). BecauseTranscriptionModelV2CallWarningonly has'unsupported-setting'and'other'variants (no'deprecated'), thebest-model andwordBoost/boostParamdeprecation warnings are emitted astype: 'other'warnings, with the affected setting name folded into the message. Tests were adjusted accordingly.WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZEhooks from the original PR are omitted — they do not exist in the v5@ai-sdk/provider-utils.providerMetadatais cast toSharedV2ProviderMetadata.assemblyai-transcription-model.tsunder v5's existingassemblyaiProviderOptionsSchemaname; the new options were added there.experimental_transcribe as transcribeimport and theexamples/ai-core/src/transcribe/layout.All other changes (new models +
speech_modelsrouting,speech_modeldeprecation, diarization/audio-intelligenceproviderMetadata, rawresponse.body, new request params, ms→s segment-timing fix, honoringconfig.fetchfor polling) match the original PR.Verification
@ai-sdk/assemblyai: build ✓,tsc --buildtype-check ✓, 21 node + 21 edge tests ✓.