Skip to content

fix: preserve video models from v3 custom-provider fallbacks - #21119

Open
ai-sdk-factory[bot] wants to merge 3 commits into
mainfrom
bugfix-21110-20260918102333363961
Open

ai-sdk-factory[bot] wants to merge 3 commits into
mainfrom
bugfix-21110-20260918102333363961

Conversation

@ai-sdk-factory

Copy link
Copy Markdown
Contributor

Background

customProvider fallback video lookup threw AI_NoSuchModelError for supported v3 providers even though direct, alias, and registry lookups succeeded.

Root Cause

asProviderV4 omitted the experimental videoModel method while customProvider queried the adapted fallback; the reproduction confirmed the resulting loss of the v3 model.

Summary

Video fallback lookup now uses the original provider with its receiver preserved and adapts returned v3 models to v4. Added an ai patch changeset.

Testing

Added regression coverage verifying v3 fallback video models are adapted to v4 and invoked with the original provider receiver.

End-to-end Validation

  • replay_original_reproduction: completed successfully with no AI_NoSuchModelError bug signal (no-longer-reproduces).

Related Issues

Fixes #21110

Closes #21113

ai-sdk-factory and others added 3 commits September 18, 2026 10:29
Co-authored-by: brennanbutler01 <64561607+brennanbutler01@users.noreply.github.com>
Co-authored-by: brennanbutler01 <64561607+brennanbutler01@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

customProvider loses video models from v3 fallback providers

1 participant