Merge branch 'phase/61-portrait-loras-embeds'
This commit is contained in:
+13
-9
@@ -507,9 +507,10 @@ land under `saves/{id}.portraits/` and survive until the school is deleted.
|
||||
|
||||
Returns the positive and negative prompts SwarmUI would receive, without generating an image.
|
||||
Same `kind` query as GET portrait. For `kind=custom`, optional query `promptExtra` is appended after
|
||||
the shot type; when omitted, the last saved custom prompt is used if one exists. Unknown school
|
||||
is `404` `unknown-school`; unknown person is `404` `unknown-person`. Invalid `kind` is
|
||||
`400` `invalid-query`; custom without a usable prompt is `400` `invalid-body`.
|
||||
the shot type; when omitted, the last saved custom prompt is used if one exists. Configured
|
||||
embeddings appear as `<embed:name>` (weight ≠ 1: `<embed:name:w>`); LoRA is not written into the
|
||||
prompt. Unknown school is `404` `unknown-school`; unknown person is `404` `unknown-person`. Invalid
|
||||
`kind` is `400` `invalid-query`; custom without a usable prompt is `400` `invalid-body`.
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -528,8 +529,10 @@ so the client can disable generate buttons and show reachability without trying
|
||||
### `GET /api/settings/swarmui`
|
||||
|
||||
Returns the **default** SwarmUI template (`swarmui.json`): a `models` catalog (id, default
|
||||
generation knobs, usually empty base positive/negative), named presets (model id, `style`, extra
|
||||
negative, optional generation overrides, per-kind size/`shotType`), `activePresetId` and `ageRules`.
|
||||
generation knobs, usually empty base positive/negative, LoRA and embedding lists), named presets
|
||||
(model id, `style`, extra negative, optional generation overrides, per-kind size/`shotType`, LoRA
|
||||
and embedding lists), `activePresetId` and `ageRules`. LoRA and embeddings on the model, preset and
|
||||
shot kind concatenate at generate time.
|
||||
The model picker in the UI is Swarm's list intersected with `models`. A new school copies this into
|
||||
its save as `portraitSettings`. Living schools generate from that copy, not from this file. Older
|
||||
saves without `models` lift on load (`positive` → `style`, kind `positive` → `shotType`).
|
||||
@@ -542,10 +545,11 @@ return `400` `invalid-body`. Already-created schools keep the copy they were cre
|
||||
### `GET /api/settings/swarmui/discovery`
|
||||
|
||||
When SwarmUI is configured and reachable, proxies `ListT2IParams` and returns
|
||||
`{ connected, models, loras, samplers, schedulers }` for the settings UI. The client hides Swarm
|
||||
models that are missing from the template catalog. When SwarmUI is off or unreachable, `connected`
|
||||
is false and the lists are empty; the picker then shows the catalog ids so fields can be filled
|
||||
manually.
|
||||
`{ connected, models, loras, embeddings, samplers, schedulers }` for the settings UI. LoRA and
|
||||
embeddings can be set on the model, the preset, and each shot kind; layers concatenate. The client
|
||||
hides Swarm models that are missing from the template catalog. When SwarmUI is off or unreachable,
|
||||
`connected` is false and the lists are empty; the picker then shows the catalog ids so fields can
|
||||
be filled manually.
|
||||
|
||||
### `GET /api/schools/{id}/dress-rules`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user