skip to content
==> README.md <==
1# @ajax/mesh-infer-request
2
3An inference request: the control port's infer words and GET /infer's query, parsed; results as text.
4
5An `infer` request (infer.rs Request, parse, from_query, text): `infer [fast|fast16|exact|exact-cpu] [max N] [prefill=K decode=J | mono=K] [repeat=R] [len=N] <prompt>` on the control port, `GET /infer?prompt=..&max=..&mode=..` on meshd's http.
6
7```c
8#include "mesh/infer_request.h"
9```
10
11## Ported from
12
13[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/infer.rs: `Request`, `USAGE`, `parse`, `text`, `from_query`, `url_decode`.
14
15## Tests
16
17- `tests/request.c`: infer.rs's `requests_parse`, and the error texts.
18
19## Licence
20
21MIT. See the repository's LICENSE.