MCPcopy Create free account
hub / github.com/anomalyco/models.dev / fetchModels

Function fetchModels

packages/core/src/sync/providers/chutes.ts:64–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 modelsDir: "providers/chutes/models",
63 preserveBaseModels: false,
64 async fetchModels() {
65 const response = await fetch(API_ENDPOINT);
66 if (!response.ok) {
67 throw new Error(`Chutes models request failed: ${response.status} ${response.statusText}`);
68 }
69 return response.json();
70 },
71 parseModels(raw) {
72 return ChutesResponse.parse(raw).data;
73 },

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected