Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

Merge pull request #714 from aashish254/fix-demo-model-names

Nandakishor3242c796ca53
diff --cc README.md
index a47c652b,4719fcbf..b9661442
--- a/README.md
+++ b/README.md
@@@ -271,32 -271,10 +271,36 @@@ curl -s localhost:8000/predict -H 'cont
`--no-preload` loads checkpoints lazily instead of all three up front; `--device cuda|cpu|mps`
pins the device. See `python examples/server.py --help` for the rest.
+ A request body may carry `model` to pin a checkpoint instead of letting the router choose, and it
+ takes exactly the spellings `laya --model` takes: names, aliases and casing all resolve through
+ `laya.router`. `GET /models` lists the checkpoints and the aliases alongside them.
+
+### JavaScript / TypeScript
+
+[`laya-client`](sdk/typescript/README.md) supports JavaScript and TypeScript
+applications over HTTP to a self-hosted `laya-serve` `/v1/systemone` server. It
+includes inferred answer types, all five question presets, ESM/CommonJS exports,
+and cancellation.
+
+```bash
+# From this checkout, install and start the Python inference service:
+pip install -e '.[serve]'
+LAYA_HOST=127.0.0.1 LAYA_MODELS=english laya-serve
+
+# In another terminal:
+cd sdk/typescript
+npm ci
+npm run build
+node examples/triage.mjs
+```
+
+The npm package is named `laya-client`. Use it when a JavaScript or TypeScript
+application talks over HTTP to self-hosted Python `laya-serve`. Use `laya-ts`
+when inference must run directly inside JavaScript through its local ONNX
+runtime, without a Python server.
+See [installation, examples, and publishing](sdk/typescript/README.md) and the
+[repository analysis](docs/typescript-sdk.md) for architecture and scope.
+
---
## Quickstart: Route Mode (Recommended)