Skip to content
Source
Sign inSign up
TanStack/schemas

Clear the price of a Gemini id the pricing page no longer names #311

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

tombeckenhamcommented

Closes #300.

What changed

  • A listed Gemini id that no section of the pricing page names now gets absent: { pricing: 'cleared' }. The poller writes its price null and stops logging pricing_lost.
  • An id a section names but the parser refuses (today: gemini-2.5-flash-image) is unchanged: the stored card is kept and pricing_lost still fires.
  • The successor's card is not copied onto the deprecated id.
  • DOCS_CACHE_VERSION goes to v31, because the cached pricing entry gained the list of named ids.

Checked

  • New unit test in model-facts.test.ts covers the three cases: priced, not named (cleared), named but refused (kept).
  • Ran the new code against the live pricing page and the prod Gemini rows: of 43 priced rows, exactly gemini-3.5-flash and gemini-3.7-flash would be cleared. That is below the mass-clear bound of 5.
  • Typecheck, lint and prettier pass. I did not run a full poll cycle.

After merge

The two stored cards go null on the first Gemini poll after deploy; the issue's done-when (a poll cycle with no pricing_lost for these ids) needs checking then.

    1. Deploying with  Cloudflare Workers  Cloudflare Workers

      The latest updates on your project. Learn more about integrating Git with Workers.

      StatusNameLatest CommitPreview URLUpdated (UTC)
      ✅ Deployment successful!
      View logs
      modelschemasce60973cCommit Preview URLOct 13 2026, 12:39 AM
    2. tombeckenham merged thisf20eaad

    3. tombeckenham closed this

Sign in to join this conversation.