SPB Git forge

spb/ai-atlas

Public
41commits 1branches 0releases
4.6 MBsize
maindefault branch
12 days agolast push
HTML 77.2% TypeScript 10.5% Python 9.6% JavaScript 2.5%
1.4 KB · 24 lines tsx
Raw Blame History
1import { ImageResponse } from 'next/og';2import { Wallpaper } from '@/components/brand/og';3import { intel, safe } from '@/lib/api';4import { fmtInt, fmtScore } from '@/lib/format';5import { SITE_NAME } from '@/lib/site';67export const runtime = 'nodejs';8export const alt = `The AI frontier right now on ${SITE_NAME}`;9export const size = { width: 1200, height: 630 };10export const contentType = 'image/png';1112export default async function FrontierOgImage() {13  const f = await safe(intel.frontier(3));14  const counters: [string, string][] = [];15  if (f) {16    counters.push(['Benchmarks tracked', fmtInt(f.benchmark_frontier?.length ?? 0)]);17    counters.push(['Frontier models', fmtInt(f.price_frontier?.frontier_models)]);18    const lead = f.benchmark_frontier?.[0]?.leader;19    if (lead) counters.push([`Leads ${f.benchmark_frontier?.[0]?.benchmark.name ?? ''}`.slice(0, 28), `${lead.model.name} · ${fmtScore(lead.score)}`.slice(0, 30)]);20    counters.push(['Pareto set', fmtInt(f.efficiency_frontier?.frontier?.length ?? 0)]);21  }22  return new ImageResponse(<Wallpaper eyebrow="What defines the AI frontier right now" title="Frontier" subtitle="Leaders per benchmark, cheapest frontier offers, largest contexts, open weights, quality vs price — observed dimensions, no composite score." counters={counters} footer="www.ai-atlas.co/frontier" markPx={240} />, { ...size });23}24