llm7
v0.1.0
Published
Tiny JavaScript client for listing available LLM7 models.
Readme
llm7
Tiny JavaScript client for listing available models from LLM7.
Install
npm install llm7Usage
import { listModelIds, listModels } from "llm7";
const models = await listModels();
console.log(models);
const modelIds = await listModelIds();
console.log(modelIds);CLI
npx llm7 models
npx llm7 models --jsonAPI
listModels(options?)
Fetches https://api.llm7.io/v1/models and returns the parsed JSON response.
Options:
baseUrl: Override the API base URL. Defaults tohttps://api.llm7.io.fetch: Override thefetchimplementation.signal: Pass anAbortSignal.
listModelIds(options?)
Fetches models and returns their id values.
Requirements
Node.js 18 or newer.
