swarm-ui: say why the model dropdown has no models, and let it retry
The model list read swallowed every failure, so a swarm that timed out answering /api/models looked the same as one with no models: the dropdown held only the agent's own value and "other…", with nothing to say why. The failure now shows as a warning with the controller's reason and a retry button, and the answer is read through a parser that ignores any shape but a list of names.
This commit is contained in:
parent
da5c52e4c8
commit
479cdd6efb
1 changed files with 70 additions and 22 deletions
|
|
@ -901,10 +901,12 @@ the `PUT`. **clear the swarm's setting** sends the `DELETE`. The model is a
|
|||
dropdown of the models the swarm already knows (`GET /api/models`: those in any
|
||||
agent's stored settings and those the agents report running on), with the
|
||||
agent's own as the empty choice; **other…** opens a box for any other model
|
||||
name, and a stored name the list lacks opens it too. The subagent models stay a
|
||||
typed list. The editor reads `GET /api/agents/{agent}/inference`; before the
|
||||
agent's first report reaches the controller, it shows no running line.
|
||||
[inference](../swarm/inference.md) describes the settings themselves.
|
||||
name, and a stored name the list lacks opens it too. When the swarm can't read
|
||||
the list, a warning says why, with a **retry** button, and the dropdown has only
|
||||
those two entries. The subagent models stay a typed list. The editor reads `GET
|
||||
/api/agents/{agent}/inference`; before the agent's first report reaches the
|
||||
controller, it shows no running line. [inference](../swarm/inference.md)
|
||||
describes the settings themselves.
|
||||
|
||||
### Editing an agent's instructions
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue