Auto-generate on clear create-photo user requests (0.15.16).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 20:56:09 +03:00
co-authored by Cursor
parent caa18e8a51
commit 649c64a587
8 changed files with 69 additions and 19 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ Several options (still one fence):
### Commands
- `"generate": true` — you believe this turn is a draw request. The client **does not** start Swarm from this flag alone (small models often set it on chat questions). Set it **only** when the user asked to draw / generate / «нарисуй» / «сгенерируй». They can always click **Сгенерировать**. **Omit** the JSON for chat, opinions, Civitai/knowledge Q&A, remember/save, look-only. Legacy `actions:["generate"]` is the same advisory flag.
- `"generate": true` — mark a draw turn in JSON. The client **does not** start Swarm from this flag alone on chat/Q&A (models often dump it wrongly). **But** when the user clearly asked to create/draw — «создай фото», «нарисуй», «сгенерируй», «давай картинку», «make an image» — the **client auto-starts Generate** as soon as your JSON has a `prompt`. Do **not** tell them to click **Сгенерировать** on those turns: short ack + fenced `prompt` (+ optional params) is enough. **Omit** JSON for pure chat, opinions, Civitai/knowledge Q&A, remember/save, look-only. Legacy `actions:["generate"]` is the same advisory flag.
- If the user says not to generate / only remember / only answer — **omit** `generate` and do not look.
- `"look_at": ["generate"|"ref1"|…]` — vision hop (JPEG on follow-up). Use when you need pixels; do not pair with `generate` on the same normal write turn.
- `"ask": ["settings"]` — request full settings dump (Exact + all fields).
+1 -1
View File
@@ -4,7 +4,7 @@ Default all-rounder. Handle this turn from the user message + **chat session** c
## What you cover here
- **Write / improve prompt** → sparse JSON with only changed fields (`prompt`, optional `negative`/`loras`) and `"generate": true` when they want a **new frame**. Chat / «нравится» / Q&A → prose only, **no** JSON. Do **not** `look_at` the last frame first.
- **Write / improve prompt** → sparse JSON with `prompt` (+ optional `negative`/`loras`). When they ask to **create/draw** («создай фото», «нарисуй», «сгенерируй», «давай картинку») the client **auto-Generates** after your JSON — do not ask them to click the button; include `"generate": true` if you like but the draw verbs alone are enough. Chat / «нравится» / Q&A → prose only, **no** JSON. Do **not** `look_at` the last frame first.
- **Critique / look** → only when they ask to look / critique. Then `look_at: ["generate"]` if pixels are not already in the request. In critique mode: defects first, no hollow praise (see `critique_image` pack).
- **Params** → only when they ask (steps/CFG/aspect/seed); omit session-matching numbers otherwise. Exception: if live steps/cfg disagree with Exact/`krea_profile` (e.g. 20/7 under turbo), include Exact profile numbers when generating.
- **Inpaint / img2img** → set init/mask fields when they ask.