Show a per-provider price and reasoning score on the homepage #106
Send to my agentWhat#
GET /v1/status already returns counts.priced and counts.models. The homepage provider table (src/routes/index.tsx) shows models, endpoints, and schemas, and does not show coverage.
Show a score. Do not add a gaps endpoint, a skip-reason taxonomy, or new model rows.
Status payload#
In src/server/status.ts, keep the existing counts and add:
counts.reasoning— models whosereasoningcolumn is non-null.counts.chat— models whoseactivityischat.
priced / models is the price score. reasoning / chat is the reasoning score. A provider with models = 0 has no price score. A provider with chat = 0 has no reasoning score.
Homepage#
On the provider table, add two numeric columns:
- price — percent
priced / models. Providers with zero models show an em dash. - reasoning — percent
reasoning / chat. Providers with zero chat models show an em dash.
In the live summary strip, add one headline number: the unweighted average of the provider price percents, skipping providers with zero models. Cartesia's voice count must not dominate Anthropic.
Match the existing table styling (num, tabular-nums). No new route.
Tests and contract#
- Extend
src/server/status.worker.test.tsfor the new counts. - Update the OpenAPI status schema in
src/server/openapi.tsand regenerateopenapi.jsonif that schema is emitted (bun run openapi:emit). Regenerate the client only if the status type is part of the generated client and CI would fail on drift.
Out of scope#
serverToolscoverage.- Listing the unpriced model ids.
- Classifying nulls as no-parser, parser-missed, or source-silent.
tombeckenham closed this
Sign in to join this conversation.