feat: Model benchmarks chart on public site + admin dashboard - #244
Merged
Conversation
New GET /api/provider-benchmarks (no auth), returning completed, non-deleted, standalone provider-route evaluation rows (route, benchmark, score, repeat, cost_usd, duration_seconds). Backs the new "Model benchmarks" chart on the public site and mirrors the data already shown in the admin dashboard's provider-tests table. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Grouped bar chart (score by model, faceted by benchmark), fed by the new /api/provider-benchmarks endpoint. Hand-rolled SVG, no charting dependency added. Uses the dataviz skill's validated dark-mode categorical palette (8 slots, fixed route->color order), verified against this site's dark surface (#060b14) with the palette validator. Mirrors the same chart shipped to the admin dashboard (companion PR in mini-router.github.io) so both surfaces show the same picture. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
3 tasks
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.
Summary
GET /api/provider-benchmarksendpoint (no auth) exposing completed, non-deleted, standalone provider-route evaluation results.#060b14).mini-router.github.ioadds the same chart (plus an admin-only cost-vs-score chart) to the admin dashboard, sourced from the existing/api/admin/evaluationsdata, so both surfaces show the same picture.Test plan
pytestpasses (19 passed, 18 skipped)web:npm run buildandnpm run lintpass