Skip to content

v0.1.0 — the documentation release

Choose a tag to compare

@kingfs kingfs released this 23 Sep 12:31
· 39 commits to master since this release

Decis speaks the TypeSafe System One API and answers with an open decision model of your choosing — laya-multilingual (the default), laya, laya-typed-decisions, or kev-0.8b. Point the official typesafe-sdk at Decis instead of api.typesafe.ai and nothing else changes.

docker run -p 8000:8000 -e DECIS_API_KEY=change-me kingfs/decis:laya-multilingual

Every engine-tagged image carries its weights, so that container needs no network, no volume and no second service. The first request answers in a quarter of a second; the model load takes about 75 seconds, and /readyz reports loading until it is done.

Added

  • API reference (docs/api.md): every endpoint, all three question
    primitives, the response envelope, the decis namespace, error codes and limits.
  • Generated API schemas (docs/schema/): JSON Schema for the request,
    response, model list and error body, plus the server's OpenAPI 3.1 document. They are
    generated from src/decis/schema.py by docs/schema/export.py, and CI fails if a
    checked-in file drifts.
  • User guides, each in English and Simplified Chinese: getting started, configuration,
    API, engines, deployment, playground and performance.
  • Community files: CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md and this
    changelog.
  • Playground navigation and credits: every page links back to the playground and out to
    this repository, and the index credits the open-source projects the games are adapted from
    and states that the API and inference are Decis's.
  • tests/test_api_schema.py and tests/test_docs.py, guarding the generated schemas and the
    bilingual docs.

Changed

  • The README is a landing page. Installation, deployment, configuration, performance and
    development details moved into docs/, where each guide can be read on its own.
  • Performance tables moved from the READMEs into
    docs/performance.md and its Chinese twin, still generated by
    benchmarks/report.py from the checked-in raw JSON.
  • The package version is 0.1.0.

Fixed

  • The user-facing documentation was checked against the code and corrected where it disagreed
    with it: a wrong max_options value in the API reference, output_tokens described as a
    count of answers, a timeout response the server never sends, engine capacities attributed to
    decis models (which reports whether an engine can run, not what it accepts), and a
    per-engine weight override that config.py silently drops for kev-0.8b.
    tests/test_docs.py now fails if a documented DECIS_* variable is read by nothing, or if a
    documented DECIS_MODEL_PATH_* variable does not name a registered engine.
  • The Tetris page displayed one more placement option than it actually sent; the number shown
    now comes from the same constant the request is built from. On narrow viewports the page
    also overflowed horizontally between 380px and 430px, which is fixed by a breakpoint.
  • The exported openapi.json reported the old package version.

Published images

Every engine-tagged image is a multi-arch manifest (amd64 + arm64) with the weights baked
in; sizes are the compressed download size, summed from the registry manifests.

Tag Size (amd64 / arm64)
kingfs/decis:laya-multilingual (= :latest, = :laya-multilingual-v0.1.0) 4.4 GB / 4.5 GB
kingfs/decis:kev-0.8b (= :kev-0.8b-v0.1.0) 6.0 GB / 6.2 GB
kingfs/decis:playground (= :playground-v0.1.0) 43.1 MB / 43.4 MB
kingfs/decis:laya-multilingual-runtime-v0.1.0 3.2 GB / 3.3 GB
kingfs/decis:kev-0.8b-runtime-v0.1.0 3.2 GB / 3.3 GB

The -runtime variants carry no weights: fill a volume with decis download once and mount it.