A customer's portal had no Images or 3D pages: nobody had written a
definition for either, on a cluster whose V100 runs both. The leading
control plane now adds flux-schnell and triposr, on demand, once a node
has a card that fits one, the cluster installs ComfyUI, and the catalog
makes nothing of that kind. presets.auto (a live setting, on by default)
turns it off; a preset somebody removes is recorded as declined and not
added back until added again by hand. Each addition is in the audit log.
GET /api/v1/presets says how each preset stands, the ComfyUI the cluster
installs, and why one is not added; POST /api/v1/presets/{name} adds one
(setting engines.comfyui where there is none); PUT /api/v1/presets/auto
switches it.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
14 lines
655 B
Go
14 lines
655 B
Go
package config
|
|
|
|
// PresetSettings is how the models that come with llmgw reach the catalog.
|
|
type PresetSettings struct {
|
|
// Auto has the leading control plane add a picture model (flux-schnell)
|
|
// and a 3D model (triposr) by itself, on demand, once a node has a card
|
|
// that fits one and the catalog has no model that makes the same kind of
|
|
// thing — so a new cluster's portal has its pictures and 3D pages
|
|
// without anybody writing a definition. Only where the cluster already
|
|
// installs ComfyUI (engines.comfyui). A preset somebody removed is not
|
|
// added again by itself. In force on the leader within a minute.
|
|
Auto bool `koanf:"auto"`
|
|
}
|