From de14bb2e0f686cb9683d07a0c6febfeaf2fb8609 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Tue, 14 Jul 2026 05:20:53 -0500 Subject: [PATCH] fix(data): improve comparison metadata --- packages/stats/app/src/app.tsx | 9 ++------- .../app/src/component/model-compare-detail.tsx | 15 +++++---------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/packages/stats/app/src/app.tsx b/packages/stats/app/src/app.tsx index a4627b32780..e8dc678af10 100644 --- a/packages/stats/app/src/app.tsx +++ b/packages/stats/app/src/app.tsx @@ -1,4 +1,4 @@ -import { MetaProvider, Meta, Title } from "@solidjs/meta" +import { MetaProvider, Title } from "@solidjs/meta" import { Router } from "@solidjs/router" import { FileRoutes } from "@solidjs/start/router" import { Suspense } from "solid-js" @@ -9,12 +9,7 @@ import "./app.css" function AppMeta() { const i18n = useI18n() - return ( - <> - {i18n.t("app.title")} - - - ) + return {i18n.t("app.title")} } export default function App() { diff --git a/packages/stats/app/src/component/model-compare-detail.tsx b/packages/stats/app/src/component/model-compare-detail.tsx index 68cfcfee688..3043ea1e80e 100644 --- a/packages/stats/app/src/component/model-compare-detail.tsx +++ b/packages/stats/app/src/component/model-compare-detail.tsx @@ -161,16 +161,11 @@ export default function ModelCompareDetailPage(props: ModelCompareDetailPageProp buildComparisonModel(model.lab, model.slug, model.catalog ?? null, stats()?.models[index] ?? null), ), ) - const title = createMemo(() => { - if (props.family) - return `${props.family.first.name} vs ${props.family.second.name}: ${models()[0].name} vs ${models()[1].name}` - return `${models()[0].name} vs ${models()[1].name} - Model Comparison` - }) - const description = createMemo(() => { - if (props.family) - return `Compare the latest ${props.family.first.name} and ${props.family.second.name} models: ${models()[0].name} vs ${models()[1].name}. See benchmarks, usage, price, context length, and features.` - return `Compare ${models()[0].name} and ${models()[1].name} by usage, rank, context window, output limit, cache ratio, and cost across OpenCode data.` - }) + const title = createMemo(() => `${models()[0].name} vs ${models()[1].name} - AI Model Comparison`) + const description = createMemo( + () => + `Compare ${models()[0].name} from ${models()[0].labName} and ${models()[1].name} from ${models()[1].labName} on key metrics including benchmarks, price, context length, usage, and model features.`, + ) const canonicalPath = createMemo(() => { if (props.family) return canonicalFamilyComparisonPath(props.family.first, props.family.second) const first = firstCatalog()