fix(data): improve comparison metadata

This commit is contained in:
Adam
2026-07-14 05:20:53 -05:00
parent 03a878ea36
commit b73d8361be
2 changed files with 7 additions and 17 deletions
@@ -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()