import { NextResponse } from "next/server"
import { checkAiServiceStatus } from "@/lib/ai"

export async function GET() {
  const ok = await checkAiServiceStatus()
  return NextResponse.json({ status: ok ? "ok" : "unavailable" }, { status: ok ? 200 : 503 })
}
