Add Veo 3.1 video model support#784
Open
AvantBras wants to merge 4 commits into
Open
Conversation
Contributor
|
@AvantBras is attempting to deploy a commit to the Merit Systems Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
Adds support for the new Vertex AI Veo 3.1 video model IDs across the Echo router + TS SDK pricing definitions, and updates the Next video template to expose/select/validate the new models.
Changes:
- Added
veo-3.1-fast-generate-previewandveo-3.1-generate-previewto the Next video template model types, UI picker, default selection, and request validation. - Added Veo 3.1 models (and pricing entries) to the TypeScript SDK’s supported Vertex AI video model list.
- Updated the server-side Vertex AI provider model list to include Veo 3.1 IDs.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| templates/next-video-template/src/lib/types.ts | Extends VideoModelOption with Veo 3.1 model IDs. |
| templates/next-video-template/src/components/video-generator.tsx | Adds Veo 3.1 options to the UI and makes 3.1 Fast the default selection. |
| templates/next-video-template/src/app/api/generate-video/vertex.ts | Expands accepted model union to include Veo 3.1. |
| templates/next-video-template/src/app/api/generate-video/validation.ts | Adds Veo 3.1 to the request allowlist validation. |
| packages/sdk/ts/src/supported-models/video/vertex-ai.ts | Adds Veo 3.1 to supported Vertex AI video models and pricing definitions. |
| packages/app/server/src/providers/VertexAIProvider.ts | Adds Veo 3.1 model IDs to the provider’s Veo model list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
21
to
26
| const VEO3_MODELS = [ | ||
| 'veo-3.1-fast-generate-preview', | ||
| 'veo-3.1-generate-preview', | ||
| 'veo-3.0-fast-generate-preview', | ||
| 'veo-3.0-generate-preview', | ||
| ]; |
Author
There was a problem hiding this comment.
I don't feel like I am in a position to make a decision here since I don't know the future veo model naming patterns.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.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.
Summary
Adds Vertex AI Veo 3.1 video model support for:
veo-3.1-fast-generate-previewveo-3.1-generate-previewUpdates the router allowlist/pricing model definitions and the Next video
template model picker/default/validation/types.
/claim #595
Verification
pnpm -C packages/sdk/ts run type-checkpnpm exec tsc --noEmitfromtemplates/next-video-templatepnpm exec prettier --check packages/app/server/src/providers/VertexAIProvider.ts packages/sdk/ts/src/supported-models/video/vertex-ai.ts templates/next-video-template/src/app/api/generate-video/validation.ts templates/next-video-template/src/app/api/generate-video/vertex.ts templates/next-video-template/src/components/video-generator.tsx templates/next-video-template/src/lib/types.tsNote
pnpm -C packages/app/server run type-checkreaches an existing unrelatedserver type error after Prisma generation:
src/utils.ts(2,3): Module '"types"' declares 'ExactEvmPayloadAuthorization' locally, but it is not exported.