12 lines
404 B
TypeScript
12 lines
404 B
TypeScript
import { modelCatalog } from "@/src/server";
|
|||
|
|
|
||
|
|
/**
|
||
|
|
* The model picker's data (model-control wave): pi-ai's configured-provider
|
||
|
|
* catalog as client-safe DTOs — id/name/cost/context/modality plus each
|
||
|
|
* model's SUPPORTED thinking levels (per its thinkingLevelMap). Static
|
||
|
|
* catalog: no network, stable within a pi-ai version.
|
||
|
|
*/
|
||
|
|
export async function GET() {
|
||
|
|
return Response.json(modelCatalog());
|
||
|
|
}
|