Download src/app/api/models/route.js from NeoPy/hugging-c-ai: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/NeoPy/hugging-c-ai/resolve/main/src/app/api/models/route.js
- Command line
-
hf download hf://NeoPy/hugging-c-ai/src/app/api/models/route.js
-
curl -L -o route.js https://huggingface.co/NeoPy/hugging-c-ai/resolve/main/src/app/api/models/route.js
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, | |
| }); | |
| } | |