Skip to content

fix (provider/gateway): add missing warning types for video response parsing#12474

Merged
shaper merged 1 commit intomainfrom
02-11-fix_provider_gateway_add_missing_warning_types_for_video_response_parsing
Feb 12, 2026
Merged

fix (provider/gateway): add missing warning types for video response parsing#12474
shaper merged 1 commit intomainfrom
02-11-fix_provider_gateway_add_missing_warning_types_for_video_response_parsing

Conversation

@shaper
Copy link
Copy Markdown
Collaborator

@shaper shaper commented Feb 12, 2026

Background

The gateway video model was missing support for certain warning types in the response parsing schema, specifically for 'unsupported' and 'compatibility' warnings. This limited the ability to properly handle and display these warning types when they were returned from providers.

Summary

Added support for additional warning types in the gateway video model response parsing:

  • Added 'unsupported' warning type with feature and optional details fields
  • Added 'compatibility' warning type with feature and optional details fields
  • Updated the schema to use a discriminated union for proper type validation
  • Added tests to verify the correct handling of these new warning types

Checklist

  • Tests have been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Related Issues

Fixes an issue where 'unsupported' and 'compatibility' warnings from video providers weren't properly handled by the gateway.

Copy link
Copy Markdown
Collaborator Author

shaper commented Feb 12, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@shaper shaper force-pushed the 02-11-fix_provider_gateway_add_missing_warning_types_for_video_response_parsing branch from 85e0b6b to 3ccec43 Compare February 12, 2026 06:46
@shaper shaper merged commit 1819bc1 into main Feb 12, 2026
19 checks passed
@shaper shaper deleted the 02-11-fix_provider_gateway_add_missing_warning_types_for_video_response_parsing branch February 12, 2026 06:56
@gr2m gr2m added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/gateway Issues related to the @ai-sdk/gateway provider and removed ai/gateway labels Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/gateway Issues related to the @ai-sdk/gateway provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants