Skip to content

Sysone 0.4.0 — custom providers

Choose a tag to compare

@6uimorais 6uimorais released this 19 Sep 07:12
· 17 commits to main since this release

Sysone 0.4.0 names the provider for your own endpoint customProvider, independently of the model and wire protocol.

import { createSysone } from 'sysone';
import { customProvider } from 'sysone/providers/custom';

const sys = createSysone({
  provider: customProvider({ baseURL: 'http://localhost:8080/v1' }),
  model: 'openjev-latest',
});

Breaking rename: replace systemOne() from sysone/providers/system-one with customProvider() from sysone/providers/custom. Its options type is now CustomProviderOptions. The default metadata provider ID is custom; explicit IDs and the HTTP contract remain unchanged.

An open model offered through Vercel still uses vercel(). customProvider connects to your own endpoint and currently supports the System One HTTP protocol. It does not load model weights or automatically support arbitrary inference APIs. Other protocols can implement EvaluationProvider.

Zero dependencies and the 4 kB min+gzip budget remain enforced. Full bundle reference: 3,901 bytes gzip (esbuild 0.28.2, ES2022, zlib 1.3.1.zlib-ng, level 9; types/docs excluded). Validation: 31 tests, type checks, production build, footprint checks and isolated package installation exercising every provider.

The initial npm publication remains pending authentication. Install this release:

npm install https://github.com/sysone-help/sysone/releases/download/v0.4.0/sysone-0.4.0.tgz