UNPKG

@deep-assistant/agent

Version:

A minimal, public domain AI CLI agent compatible with OpenCode's JSON interface. Bun-only runtime.

12 lines (11 loc) 288 B
export async function data() { const path = Bun.env.MODELS_DEV_API_JSON if (path) { const file = Bun.file(path) if (await file.exists()) { return await file.text() } } const json = await fetch("https://models.dev/api.json").then((x) => x.text()) return json }