fix(stats): show public specs for stealth models - #53381
Merged
Merged
Conversation
Stealth models are absent from the lab catalog, so their model page showed Unknown for every spec. Fill context, output, knowledge, release, and inputs from their public OpenCode provider listing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
No issue; raised in the data channel.
Type of change
What does this PR do?
Stealth models (
STEALTH_MODELS: space-bunny, omen-alpha, union-alpha) aren't incatalog.json, so the model page overview showed Unknown for every spec. Their OpenCode listings inapi.jsonalready publish the specs, and the stats app already fetches that file for pricing.buildModelCatalognow readsrelease_date,knowledge,limit, andmodalitiesfor stealth models from theopencodeprovider listing, falling back toopencode-go. The model page uses those specs only when no catalog entry exists. For space-bunny that gives Context 1M, Output 524K, Release Sep 2026, and Inputs Text, Image, and Video. Knowledge stays Unknown because the listing doesn't include it.Scope is limited to the overview row. Stealth models still don't get a catalog entry, so their name, lab, pricing, comparisons, canonical paths, and agent-readable formats are unchanged. Other providers' listings for the same model (e.g.
stealth/space-bunny-alphaon resellers) are ignored.How did you verify your code works?
packages/stats/app/test/model-catalog.test.tscovering the stealth-model specs,opencodetaking precedence overopencode-go, and stealth models staying out of the lab catalogbun testandbun run typecheckinpackages/stats/appcatalog.jsonandapi.json:stealthSpecscontains onlyspace-bunnywith the values above, and the catalog still has no entry for itScreenshots / recordings
Not rendered locally because the page needs the stats database.
Checklist
Requested by: @adamdotdevin (Adam via Slack)