Spaces:
Running
Running
Commit History
-
Adapt upstream category-based code to v2 tag taxonomy
Upstream's new OG routes, eval layout, and benchmark-detail additions referenced the retired v1 category model. Map to v2 equivalents: - evaluations_by_category -> evaluations_by_tag (OG model card) - summary.category -> derived_tags[0] (OG/eval-detail social subtitle) - category: CategoryType -> EvalTag (benchmark-detail local row types) - summary_eval_ids -> constituent_evaluation_ids (clean-hierarchy Vals.ai merge) Also cast a pre-existing parseMaybeJson(evalcards_annotations) to RowAnnotations in view-data (latent, masked by ignoreBuildErrors).bfb71af -
Add per-model + per-eval OpenGraph thumbnails; replace "EE/EC" mark with logo image
Social/chat unfurls now identify the specific model or benchmark being shared instead of showing the generic homepage card. - /api/og/models/[...id] and /api/og/evals/[...id] render dynamic 1200x630 PNGs via next/og's ImageResponse, pulling display name / developer / category / models-evaluated / top-model from the existing DuckDB-backed summary getters. Cards include the EvalEval brand logo (logo-square.png) in place of the previous text mark. The handlers live under /api/og/ rather than as `opengraph-image.tsx` siblings because Next.js 15 rejects metadata files inside catch-all (`[...id]`) folders. - app/models/[...id]/layout.tsx and app/evals/[...id]/layout.tsx own the `generateMetadata` for those routes (the page components are client-side, so they can't export metadata directly). The layouts also seed the per-entity `title`/`description`/`og:image`/`twitter:image` so non-image unfurls also identify the entity. - app/opengraph-image.tsx swaps the inline "EE" te…c315a26