mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-19 07:23:31 +00:00
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 { FileRoutes } from "@solidjs/start/router"
|
||||
import { Suspense } from "solid-js"
|
||||
|
|
@ -9,12 +9,7 @@ import "./app.css"
|
|||
|
||||
function AppMeta() {
|
||||
const i18n = useI18n()
|
||||
return (
|
||||
<>
|
||||
<Title>{i18n.t("app.title")}</Title>
|
||||
<Meta name="description" content={i18n.t("app.description")} />
|
||||
</>
|
||||
)
|
||||
return <Title>{i18n.t("app.title")}</Title>
|
||||
}
|
||||
|
||||
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),
|
||||
),
|
||||
)
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue