Skip to content
Source
Sign inSign up
TanStack/schemas

gemini: genie-4 page states Output video as resolution/fps, not a duration range — parse throws, will fail the whole Gemini spec sync #697

Closedtombeckenham opened this issue 0 comments
tombeckenhamcommented

What happens

Since 22:15 UTC on 2026-11-19, the Gemini models poll has logged:

gemini model page: unreadable Output video limit "1280x720 (720p, 16:9, 24 fps), 240 video output tokens per frame (5,7…"(jobmodels-poll`)

Google added a new model page, https://aistudio.google.com/docs/models/genie-4.md. Genie 4 is a real-time interactive world model on the Interactions API (interactions.connect with world_setup and user_action events). It streams video for as long as the session lasts. Its Limits row states a frame size and token rate, not a duration:

**Output video** 1280x720 (720p, 16:9, 24 fps), 240 video output tokens per frame (5,760 tokens/sec)

parsePageOutputVideo (src/server/providers/gemini-features.ts:417-431) accepts only Ns-Ms and throws on anything else.

How far the throw reaches

  • Models poll: model pages load through tryDocs, so only genie-4's page facts become unavailable. The throw is reported every poll.
  • Daily spec sync (worse): geminiVideoEndpoints (src/server/providers/gemini-video.ts:183-211) reads every model page that https://aistudio.google.com/docs/video.md links, and that guide now links models/genie-4. The parse runs inside a bare mapConcurrent call, so the throw rejects fetchSpec (gemini.ts:283-294). The whole Gemini spec sync then fails on the next shard: the Discovery spec and the Omni video schema are not refreshed either.

Fix

  • Teach the parser this second shape: a resolution, fps and token-rate limit with no duration range. That is a stated fact: a real-time stream, not a fixed-length clip. Don't call it unreadable, and don't invent a duration.
  • geminiVideoEndpoints builds the duration-enum create endpoint only for models with an Ns-Ms range. A streamed model such as genie-4 gets no fixed-duration schema. Either build the correct streaming schema from the Interactions spec, if it publishes one, or add a named warning (genie-4: real-time stream, no fixed-duration create schema). Never skip it silently.
  • A shape the parser does not know should still throw. Scope that throw to the one page in the spec sync, so that one new page cannot fail the Discovery spec and every other video model. It should still be reported, for example as a warning or an ingest_failed naming the page.
  • Decide genie-4's activity from what the page states: it outputs video.
  • Add tests with the live genie-4.md as a fixture. Cover parse, poll and spec sync, plus a page with an unknown limit shape.
  1. tombeckenham assignedtombeckenham

  2. tombeckenham linked this to #698

  3. tombeckenham closed this

Sign in to join this conversation.