hugging-c-ai / src /app /api /models /route.js
NeoPy's picture
feat: Hugging-c-ai v2 — HF OAuth + multi-provider AI + HF bucket storage + Gradio
60faa09
Raw History Blame Contribute Delete
332 Bytes
import { NextResponse } from "next/server";
import { MODEL_CATALOG, MODELS_BY_PROVIDER, PROVIDER_META, DEFAULT_MODEL } from "@/lib/ai/models";
export async function GET() {
return NextResponse.json({
models: MODEL_CATALOG,
byProvider: MODELS_BY_PROVIDER,
providers: PROVIDER_META,
default: DEFAULT_MODEL,
});
}