Ship Image Studio as importable JSON in addition to markdown walkthrough
Open WebUI accepts a JSON file at Workspace → Models → Import that seeds a new model preset in one click instead of the manual table- driven setup. The new image_studio.json mirrors the Open WebUI bulk- export schema (array wrapper around the model object with id, name, base_model_id, params, meta) and pre-fills system prompt, native function calling, temperature 0.5, top_p 0.9, smart_image_gen tool attachment, suggestion prompts. The markdown walkthrough stays as the source of truth for the system prompt content and as the fallback when import fails (e.g. tool ID mismatch, unfamiliar field, schema drift across Open WebUI versions). README points at both paths. Caveat doc'd in the markdown: if the imported preset doesn't actually have smart_image_gen attached, the tool ID in the JSON didn't match what Open WebUI assigned — re-attach manually in the model edit screen. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d4e2058859
commit
6adf133558
3 files changed
+64
-5
No files matched your search
@@ -17,7 +17,8 @@ production `srvno.de` deployment.
|
||||
| `init-models.sh` | LLMs to preseed into Ollama on first boot |
|
||||
| `comfyui-init-models.sh` | Checkpoints/VAEs/LoRAs to preseed into ComfyUI on first boot |
|
||||
| `openwebui-tools/smart_image_gen.py` | Tool that auto-routes image generation AND editing to the right SDXL checkpoint |
|
||||
| `openwebui-models/image_studio.md` | Dedicated chat-model preset — system prompt that forces tool use |
|
||||
| `openwebui-models/image_studio.md` | Dedicated chat-model preset — manual setup walkthrough |
|
||||
| `openwebui-models/image_studio.json` | The same preset as an importable Open WebUI model JSON |
|
||||
| `.env.example` | Secrets and image-tag pins. Copy to `.env` |
|
||||
|
||||
## 1. Host prerequisites
|
||||
@@ -190,10 +191,15 @@ phrasing ("can you draw me…", "I'd love a picture of…"). The
|
||||
**Image Studio** preset wraps `mistral-nemo:12b` in a system prompt
|
||||
that mandates tool use — every message is treated as an image request.
|
||||
|
||||
Setup (under 5 minutes): see
|
||||
[`openwebui-models/image_studio.md`](openwebui-models/image_studio.md).
|
||||
Setup — two paths:
|
||||
|
||||
- **Import the JSON** (fast): Workspace → Models → Import →
|
||||
[`openwebui-models/image_studio.json`](openwebui-models/image_studio.json).
|
||||
- **Manual** (full control): walkthrough in
|
||||
[`openwebui-models/image_studio.md`](openwebui-models/image_studio.md).
|
||||
|
||||
Users then pick **Image Studio** from the chat-model dropdown when
|
||||
they want to generate.
|
||||
they want to generate or edit images.
|
||||
|
||||
To extend (new checkpoint, new style):
|
||||
|
||||
|
||||
Reference in new issue
Block a user