Skip to content
Source
Sign inSign up
TanStack/schemas

Give Lovable video its own seconds and sizes #666

Mergedtombeckenhammerged 1 commit intomain fromrefs/pull/666/headmerged by tombeckenham View on GitHub

tombeckenhamcommented

Fixes #659

Lovable's POST /videos request was OpenAI's Sora body: seconds of "4" | "8" | "12", Sora sizes, and a description that still named sora-2 after the model enum was overwritten with the Google ids.

The gateway runs Veo and Gemini Omni (docs). Spec sync now replaces that body with one branch per listed video model:

  • Veo 3.1 Lite: seconds 4, 6, 8. Sizes are 720p and 1080p. 1080p is 8 seconds. No 4K.
  • Veo 3.1 and Veo 3.1 Fast: the same seconds, plus 4K. 1080p and 4K are 8 seconds.
  • Gemini Omni 1.1 Flash: seconds 3 through 10, at 360p, 720p, 1080p, and 4K.

A listed video id with no row in that table fails the sync, so a new model cannot ship on Sora's limits. The video operation is docs-derived as of 2026-11-16. No video description mentions Sora.

Test plan

  • pnpm exec vitest run src/server/providers/lovable-video.test.ts — Veo accepts 6 and rejects 12; lite rejects 4K; Omni accepts 3 and 10 and rejects 12 and 1024x1792; bundled schemas do not contain "sora".
  • After deploy, GET /v1/openapi/lovable?activity=video shows the branches above.
    1. Warning

      Review limit reached

      You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

      Next included review available in 46 minutes.

      Check out review usage here.

      View limit details

      Limit details: You’ve used the included review currently available.

      Learn how review limits work.

      Review configuration:

      Run configuration

      • Source mode: Auto
      • Repository: Unavailable
      • Branch: Unavailable
      • File: No configuration file from this repository applied
      • Commit: Unavailable
      • Layers: defaults
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 806e7f45-e486-46da-80e2-76b9ef23e648
      Commits

      Reviewing files that changed from the base of the PR and between 876992937d62891e9738527934373ad840c758cf and 78e01e78b4ed8b8b487dacf15189ce5d61aade8d.

      Files selected for processing: 3

      • src/server/providers/adapters/lovable.ts
      • src/server/providers/lovable-video.test.ts
      • src/server/providers/lovable-video.ts
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      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.

      Share

    2. ⚠️ No Changeset found

      Latest commit: 78e01e78b4ed8b8b487dacf15189ce5d61aade8d

      Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

      This PR includes no changesets

      When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

      Click here to learn what changesets are, and how to add one.

      Click here if you're a maintainer who wants to add a changeset to this PR

    3. tombeckenham linked this to fix #659

    4. tombeckenham merged thisad876ab

    5. tombeckenham closed this

Sign in to join this conversation.