Backport: feat(assemblyai): support universal-3-5-pro and expand the transcription provider (#16548)#16569
Open
gr2m wants to merge 1 commit into
Open
Backport: feat(assemblyai): support universal-3-5-pro and expand the transcription provider (#16548)#16569gr2m wants to merge 1 commit into
gr2m wants to merge 1 commit into
Conversation
…transcription provider (#16548) Backport of #16548 to release-v6.0. Adapted to the v6 provider spec: the transcription model targets TranscriptionModelV3 (not V4), so the deprecation/nudge warnings are emitted as `type: 'other'` warnings (SharedV3Warning has no `deprecated` variant), and the workflow serialize/deserialize hooks from the original PR are omitted (not available in v6). The provider options schema remains inline in the model file, matching v6's 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-v6.0.Adaptations for the v6 provider spec
The original PR targets the v7 (
main) provider spec; this backport adapts it to v6:TranscriptionModelV3(notV4). BecauseSharedV3Warninghas nodeprecatedvariant, 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 —serializeModelOptions/ those symbols do not exist in the v6@ai-sdk/provider-utils.assemblyai-transcription-model.ts(v6 never received thekonsistentrefactor that split it intoassemblyai-transcription-model-options.ts), and the new options were added there.experimental_transcribe as transcribeimport.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 ✓.