MLX-Serve (github.com/ddalcu/mlx-serve) serves decision models (Clef,
Clef-Flash, Kev, Laya, D1) at POST /v1/systemone (and /v1/decisions). Its
/v1/models lists them alongside chat models, marking them with
capabilities: ["decisions"]. Setting a routing group classifier to an
mlx-serve decision model previously failed because the preset had no
decision endpoint and magpie offered it as a chat model, which MLX-Serve
rejected with 400.
- The mlx-serve preset has a decision base, http://localhost:11234/v1.
An existing MLX-Serve provider saved without decide gets its chat base as
one, at whatever port it was given (as oMLX does).
- mlxServeDecides joins listsDecisions. fetchDecide reads /v1/models and
keeps models with the "decisions" capability under <id>.decisions, with
the model's context window and input modalities.
- DecidesModel takes them out of the agents' chat lists and offers them as
deciders. Jev() is the first of them. A server with no decision model
lists none, and no Jev alias is made up for it.
- Provider test on a decision model asks System One rather than chat.
Run:
- TestMlxServeDecisionModels: fake MLX-Serve answers with real captured
fields. Clef-Flash with capabilities: ["decisions"] is a decider, chat
models reach agents, and RouteDecider plus AskSystemOne post to
/v1/systemone. TestModels tests clef-flash-4bit via decide. Red without
mlxServeDecides in listsDecisions.
- TestListedMLXServeDecideTable: real captured response, vision modalities,
`models` field fallback with omitted input_modalities, chat-only server,
empty list, and invalid JSON.
- TestMLXServeWithoutDecisionModels: no decision model means none, not Jev.
- Real MLX-Serve on localhost:11234 in sandbox HOME with isolated config:
provider add mlx-serve, provider refresh, provider test mlx-serve
clef-flash-4bit (543 ms, decide OK), group add with classifier.
- go test -tags nogui ./internal/provider/..., gofmt -l, GOOS=linux and
GOOS=windows go vet, cross-OS builds.