fix(data): improve comparison metadata
This commit is contained in:
parent
0539d56fc4
commit
de14bb2e0f
2 changed files with 7 additions and 17 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { MetaProvider, Meta, Title } from "@solidjs/meta"
|
import { MetaProvider, Title } from "@solidjs/meta"
|
||||||
import { Router } from "@solidjs/router"
|
import { Router } from "@solidjs/router"
|
||||||
import { FileRoutes } from "@solidjs/start/router"
|
import { FileRoutes } from "@solidjs/start/router"
|
||||||
import { Suspense } from "solid-js"
|
import { Suspense } from "solid-js"
|
||||||
|
|
@ -9,12 +9,7 @@ import "./app.css"
|
||||||
|
|
||||||
function AppMeta() {
|
function AppMeta() {
|
||||||
const i18n = useI18n()
|
const i18n = useI18n()
|
||||||
return (
|
return <Title>{i18n.t("app.title")}</Title>
|
||||||
<>
|
|
||||||
<Title>{i18n.t("app.title")}</Title>
|
|
||||||
<Meta name="description" content={i18n.t("app.description")} />
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
|
|
|
||||||
|
|
@ -161,16 +161,11 @@ export default function ModelCompareDetailPage(props: ModelCompareDetailPageProp
|
||||||
buildComparisonModel(model.lab, model.slug, model.catalog ?? null, stats()?.models[index] ?? null),
|
buildComparisonModel(model.lab, model.slug, model.catalog ?? null, stats()?.models[index] ?? null),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
const title = createMemo(() => {
|
const title = createMemo(() => `${models()[0].name} vs ${models()[1].name} - AI Model Comparison`)
|
||||||
if (props.family)
|
const description = createMemo(
|
||||||
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`
|
`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 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 canonicalPath = createMemo(() => {
|
const canonicalPath = createMemo(() => {
|
||||||
if (props.family) return canonicalFamilyComparisonPath(props.family.first, props.family.second)
|
if (props.family) return canonicalFamilyComparisonPath(props.family.first, props.family.second)
|
||||||
const first = firstCatalog()
|
const first = firstCatalog()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue