import { fmtDate } from "@/lib/utils"; import { usd, type ModelsPayload } from "./format"; export function Provenance({ benchmark, benchmarked, pricing }: { benchmark: ModelsPayload["benchmark"]; benchmarked: number; pricing: { openai?: string | null; anthropic?: string | null } }) { return (
Benchmark provenance
{benchmark ?
Generated
{fmtDate(benchmark.generated, { dateStyle: "medium", timeStyle: "short" })}
Real runs
{benchmark.runs} across {benchmarked} models · 2 trials per cell
Categories
{benchmark.categories.length} ({benchmark.categories.map((c) => c.label).join(", ")})
LLM judges
{benchmark.judges.join(", ")}
Total cost
{usd(benchmark.total_cost, 2)} (estimated)
Report
docs/ai-model-comparison.md · routing policy in docs/ai-routing-strategy.md
:

No benchmark summary seeded — run pnpm bench:run && pnpm bench:report && pnpm seed:ai.

}
Measured vs estimated
); }