14 lines
332 B
TypeScript
14 lines
332 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { appConfig } from "@/lib/config";
|
|
|
|
export const runtime = "nodejs";
|
|
|
|
export async function GET() {
|
|
return NextResponse.json({
|
|
ok: true,
|
|
configured: Boolean(appConfig.openAiApiKey),
|
|
model: appConfig.openAiImageModel,
|
|
timeoutMs: appConfig.openAiTimeoutMs,
|
|
});
|
|
}
|