MCPcopy Create free account
hub / github.com/arctic-cli/interface / data

Function data

packages/arctic/src/provider/models-macro.ts:1–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export async function data() {
2 const path = Bun.env.MODELS_DEV_API_JSON
3 if (path) {
4 const file = Bun.file(path)
5 if (await file.exists()) {
6 return await file.text()
7 }
8 }
9 const json = await fetch("https://models.dev/api.json").then((x) => x.text())
10 return json
11}

Callers 1

getFunction · 0.90

Calls 3

fetchFunction · 0.70
textMethod · 0.65
existsMethod · 0.45

Tested by

no test coverage detected