import { getModelStatus } from '$lib/server/whisper.js'; export async function GET() { try { const status = await getModelStatus(); return new Response(JSON.stringify(status), { headers: { 'Content-Type': 'application/json' } }); } catch { return new Response(JSON.stringify({ state: 'unloaded' }), { headers: { 'Content-Type': 'application/json' } }); } }