import { ImageResponse } from 'next/og'; import { Wallpaper } from '@/components/brand/og'; import { intel, safe } from '@/lib/api'; import { fmtInt } from '@/lib/format'; import { SITE_NAME } from '@/lib/site'; export const runtime = 'nodejs'; export const alt = `Open Model Frontier on ${SITE_NAME}`; export const size = { width: 1200, height: 630 }; export const contentType = 'image/png'; export default async function OpenOgImage() { const r = await safe(intel.open({ limit: 1 })); const c = r?.summary?.by_category ?? {}; const counters: [string, string][] = r ? [['Downloadable models', fmtInt(r.total)], ['Open weights', fmtInt(c['open-weights'] ?? 0)], ['Restricted weights', fmtInt(c['restricted-weights'] ?? 0)], ['New in 30 days', fmtInt(r.summary?.new_30d)]] : []; return new ImageResponse(, { ...size }); }