MCPcopy
hub / github.com/anomalyco/models.dev / fetchModels

Function fetchModels

packages/core/src/sync/providers/vercel.ts:61–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 modelsDir: "providers/vercel/models",
60 preserveSymlinks: true,
61 async fetchModels() {
62 const response = await fetch(API_ENDPOINT);
63 if (!response.ok) {
64 throw new Error(`Vercel AI Gateway request failed: ${response.status} ${response.statusText}`);
65 }
66 return response.json();
67 },
68 parseModels(raw) {
69 return VercelResponse.parse(raw).data;
70 },

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected