Skip to content
Source
Sign inSign up
TanStack/schemas

Read OpenCode Zen and Go from models.dev (#307) #313

Mergedtombeckenhammerged 2 commits intomain fromrefs/pull/313/headmerged by tombeckenham View on GitHub

tombeckenhamcommented

Closes #307

Summary

  • Stop fetching the removed /docs/zen and /docs/go pages. Both polls were 404ing since those pages were deleted upstream.
  • Compile Zen rate cards from OpenCode's models.dev cost, including context tiers. Leave Go prices null: that cost is not a confirmed billed token price.
  • Zen routes follow the catalog api (/inference/v1) and the model's AI SDK package. Go stays on the documented /zen/go/v1 ids.
  • Keep models.dev cards and schema versions for opencode and opencode-go. Every other provider still drops that source.

Test plan

  • Unit tests for the catalog compiler, both adapters, and route verification
  • Worker test: an OpenCode models.dev card is stored; another provider's models.dev card is still dropped
  • After deploy, one models poll emits no ingest_failed for opencode or opencode-go
    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
      modelschemascd5c719eCommit Preview URLOct 13 2026, 02:02 AM
    2. tombeckenham merged this2810230

    3. tombeckenham closed this

Sign in to join this conversation.