A browser-only UI for llama-server's /v1/decision endpoint (the parallel-decision llama.cpp branch).
There is no backend: the page talks to llama-server directly, and its only setting is the server URL.
- Playground — write instructions, a finite schema (form or JSON) and a context, then compare one
/v1/decisionpass with a streamed, grammar-constrained/v1/chat/completionsrun on the same model: per-field answers and probabilities, server and round-trip timings, and the exact request payloads. - Game — a small top-down arena where agents pick their controls with
/v1/decisionseveral times a second (moving target, or a duel where both agents are models).
npm install
npm run devSet the llama-server URL in the header (stored in the browser). To bake a default into a build, set
VITE_DEFAULT_SERVER (for example in .env.local); otherwise it defaults to http://localhost:8080.
/v1/decision takes contexts, a list of 1-256 context strings, and returns results in the same order; all
contexts share the schema, the instructions and the cached prompt prefix. In the playground, separate several
contexts with a line of ---; the game sends both duel agents in one request.
The server needs --decision-seqs N (or decision-seqs = N in a router preset). In router mode the model
list and "loaded" markers come from /v1/models, and requests pick the model with the model field.
npm run build # static files in dist/, servable by any web server