swarm-controller: GET /api/models lists the model names the swarm already knows
This commit is contained in:
parent
36a8b4fa1f
commit
ef817ed5a0
1 changed files with 136 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue