import type { Metadata } from "next"; import Link from "next/link"; import { listBenchmarks } from "@/lib/benchmarks"; import { getModel } from "@/lib/library"; import { BenchmarkList } from "./benchmark-list"; export const dynamic = "force-dynamic"; export const metadata: Metadata = { title: "Benchmarks" }; export default async function BenchmarksPage({ searchParams }: PageProps<"/benchmarks">) { const modelId = (await searchParams).model; const model = typeof modelId === "string" ? await getModel(modelId) : null; const rows = await listBenchmarks({ modelId: model?.model.id }); return (
{model ? ( <> Runs of{" "} {model.model.repoId} .{" "} Show all > ) : ( <> Speed (BetterBench), A/B and quality runs against your{" "} endpoints . Start one from an endpoint; select runs to compare their settings and numbers. > )}