Watch
0
0
Fork
You've already forked hyperhive
0

swarm-controller: GET /api/models lists the model names the swarm already knows

This commit is contained in:
iris 2026-11-22 13:40:34 +01:00
commit ef817ed5a0

View file

@ -131,6 +131,12 @@ warning in its log, until the next `PUT` replaces it.
| `PUT` | `/api/agents/<agent>/inference` | the whole value, replacing the stored one; the controller refuses unknown fields, an unknown effort, or a model name with whitespace or a leading `-`, a `max_subagents` above 32, or a `soft_context_percent` outside 5 to 100 |
| `DELETE` | `/api/agents/<agent>/inference` | —; answers 204 |
`GET /api/models` answers `{"models": [...]}`: the distinct model names in
any agent's stored settings (its model and its subagent models) and in the
settings the agents reported running on, sorted. The swarm UI offers them in
the model dropdown, so no model name lives in the UI. A swarm where no agent
has either answers an empty list.
An agent's own queue credential grants it
`$JS.API.DIRECT.GET.KV_agent-inference.$KV.agent-inference.<agent>`, the
direct read of its own key, and nothing else in this bucket — the same shape