Commit 27eaac5
feat(ai-gemini): add Google Veo video adapter on the typed-duration contract (#634)
Builds the Veo adapter directly on the per-model typed-duration VideoAdapter
contract from #534:
- Uncomment + finalize the five Veo model entries in model-meta.ts and add
a GEMINI_VIDEO_MODELS union.
- Add video/video-provider-options.ts with GeminiVideoModelDurationByName,
GeminiVideoModelSizeByName, and a docs-curated GEMINI_VIDEO_DURATIONS map
(the ai-schemas Gemini spec types :predictLongRunning parameters as
unknown, so it carries no per-model duration data).
- Implement GeminiVideoAdapter over @google/genai generateVideos /
getVideosOperation with availableDurations/snapDuration overrides, RAI
filter surfacing, and geminiVideo/createGeminiVideo factories.
- Wire gemini into the video-gen E2E feature matrix with a Veo
predictLongRunning + operations mount in global-setup.
- Update video-generation docs and the media-generation skill.
- Fix pre-existing no-unnecessary-type-assertion lint errors in the base
branch's snap.ts / fal video.ts so the stacked PR gate is green.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent a4ed1b6 commit 27eaac5
13 files changed
Lines changed: 1016 additions & 46 deletions
File tree
- .changeset
- docs/media
- packages/typescript
- ai-fal/src/adapters
- ai-gemini
- src
- adapters
- video
- tests
- ai
- skills/ai-core/media-generation
- src/activities/generateVideo
- testing/e2e
- src/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
412 | 415 | | |
413 | 416 | | |
414 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
415 | 475 | | |
416 | 476 | | |
417 | 477 | | |
| |||
497 | 557 | | |
498 | 558 | | |
499 | 559 | | |
500 | | - | |
| 560 | + | |
| 561 | + | |
501 | 562 | | |
502 | | - | |
| 563 | + | |
| 564 | + | |
503 | 565 | | |
504 | 566 | | |
505 | 567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 142 | + | |
145 | 143 | | |
146 | 144 | | |
147 | 145 | | |
| |||
0 commit comments