Model Relay JavaScript SDK · Node ESM
0.1.0-local.119 · Node.js >=24 <25 · ESM
Source reviewed
Versioned source interfaces with explicit Bearer credentials. The example only reads models.
Declared capabilities
- Model discovery
- Text inference
- Responses
- Messages
- Original-result recovery
Version limits
- Source alignment is not proof of installation or access to a live provider.
- Keep the original operation key and receipt after an unknown write; do not assume failure or a refund.
- Private local distribution; no current tarball or install qualification is claimed.
- Session-only management interfaces need an authorized session transport; an inference key is not a substitute.
Configuration
- Obtain the exact versioned artifact and its independently verified hash before installation. This directory does not supply a built package.
- Run the example as an ESM module after that artifact is installed; set the two environment variables locally.
GET model discovery only. This is a configuration/source example, not a live access test.
import { InferenceClient } from "@model-relay/client";
// Use your own authorized Gateway URL and key via environment variables.
const client = new InferenceClient({
baseURL: process.env.RELAY_BASE_URL,
token: process.env.RELAY_API_KEY,
});
const models = await client.models();
console.log(models.map(model => model.id));
Basis and verification scope
Each item below is a source reference. Current package installation, live service access and your OS/client combination remain unverified.
Exact version, ESM exports and Node engine
Package declaration only; no installation claim.
packages/client/package.json
SHA-256 3d7998f992e3d6b9597e166f783fbd1df196dd54f65a09b18d928cfba92f1669
Actual InferenceClient.models source
Version-selected implementation of the example; server authentication and permissions remain authoritative.
packages/client/src/index.ts
SHA-256 ca1115b7dcb81e90943287292621448ccf38c709e0c5af1485d1c873bd41bf82
Actual Responses/Messages source interfaces
Declared SDK capabilities only. The discovery example does not validate generation, upstream SDK parity or live execution.
packages/client/src/protocols.ts
SHA-256 b8f78be925e7532517ffadca3b513c5d4a49a196319609034c89df305b832354