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

Function fetchModels

packages/core/src/sync/providers/ovhcloud.ts:44–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 name: "OVHcloud AI Endpoints",
43 modelsDir: "providers/ovhcloud/models",
44 async fetchModels() {
45 const response = await fetch(API_ENDPOINT);
46 if (!response.ok) {
47 throw new Error(`OVHcloud request failed: ${response.status} ${response.statusText}`);
48 }
49 return response.json();
50 },
51 parseModels(raw) {
52 return OvhcloudResponse.parse(raw).data;
53 },

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected