feat(ai-gemini): drop retired media models, add Veo 3.1 Lite#875
Conversation
Four media models now return 404 NOT_FOUND from the Gemini Developer API and are removed from the adapter's model lists + type maps: imagen-3.0-generate-002, veo-2.0-generate-001, veo-3.0-generate-001, veo-3.0-fast-generate-001. Add veo-3.1-lite-generate-preview (Veo 3.1 Lite) — the lowest-cost Veo 3.1 tier ($0.05/sec, 720p, video+audio), durations 4|6|8. Update the video duration maps, Imagen image caps, unit tests, and docs accordingly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThis PR retires legacy Gemini media models (Imagen 3.0, Veo 3.0/2.0 variants) and introduces Imagen 4 image models and a Veo 3.1 Lite video model. Changes span model metadata, provider option duration/cap tables, adapter JSDoc examples, documentation, a changeset, and corresponding test updates. ChangesGemini Model Catalog Update
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Changeset Version Preview3 package(s) bumped directly, 0 bumped as dependents. 🟨 Minor bumps
🟩 Patch bumps
|
|
View your CI Pipeline Execution ↗ for commit b33acb9
☁️ Nx Cloud last updated this comment at |
@tanstack/ai
@tanstack/ai-acp
@tanstack/ai-angular
@tanstack/ai-anthropic
@tanstack/ai-bedrock
@tanstack/ai-claude-code
@tanstack/ai-client
@tanstack/ai-code-mode
@tanstack/ai-code-mode-skills
@tanstack/ai-codex
@tanstack/ai-devtools-core
@tanstack/ai-elevenlabs
@tanstack/ai-event-client
@tanstack/ai-fal
@tanstack/ai-gemini
@tanstack/ai-grok
@tanstack/ai-grok-build
@tanstack/ai-groq
@tanstack/ai-isolate-cloudflare
@tanstack/ai-isolate-node
@tanstack/ai-isolate-quickjs
@tanstack/ai-mcp
@tanstack/ai-mistral
@tanstack/ai-ollama
@tanstack/ai-openai
@tanstack/ai-opencode
@tanstack/ai-openrouter
@tanstack/ai-preact
@tanstack/ai-react
@tanstack/ai-react-ui
@tanstack/ai-sandbox
@tanstack/ai-sandbox-cloudflare
@tanstack/ai-sandbox-daytona
@tanstack/ai-sandbox-docker
@tanstack/ai-sandbox-local-process
@tanstack/ai-sandbox-vercel
@tanstack/ai-solid
@tanstack/ai-solid-ui
@tanstack/ai-svelte
@tanstack/ai-utils
@tanstack/ai-vue
@tanstack/ai-vue-ui
@tanstack/openai-base
@tanstack/preact-ai-devtools
@tanstack/react-ai-devtools
@tanstack/solid-ai-devtools
commit: |
🎯 Changes
Removes Gemini media models that are no longer reachable via the Gemini Developer API, and adds the new Veo 3.1 Lite model.
Verified against the live API (
GET /v1beta/models/{id}): the following all return404 NOT_FOUND, whilegemini-3.1-flash-image-preview,veo-3.1-generate-preview, andimagen-4.0-*return 200 — so the 404s are real deprecations, not an access issue:imagen-3.0-generate-002veo-2.0-generate-001veo-3.0-generate-001veo-3.0-fast-generate-001Added:
veo-3.1-lite-generate-preview(Veo 3.1 Lite) — the lowest-cost Veo 3.1 tier ($0.05/sec, 720p, video + audio), durations4 | 6 | 8.Changes:
model-meta.ts: remove the four consts + theirGEMINI_IMAGE_MODELS/GEMINI_VIDEO_MODELSentries; addVEO_3_1_LITE_PREVIEW.video/video-provider-options.ts: drop retired models fromGeminiVideoModelDurationByName+GEMINI_VIDEO_DURATIONS; addveo-3.1-lite-generate-preview. (No model has the old Veo-25|6|8set anymore.)image/image-provider-options.ts: dropimagen-3.0-generate-002from the per-model image caps.veo-3.1-lite-generate-preview/imagen-4.0-generate-001; remove the Veo-2-specific duration tests) and docs.Migration: if you referenced a removed id, use a current model —
imagen-4.0-generate-001,veo-3.1-generate-preview, orveo-3.1-lite-generate-preview.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
New Features
Bug Fixes
Documentation