Pre-workshop: own thread pool for SDK calls, no monitoring page, cost cap below prepaid credit
Magnus Persson
78b337e
Clay style: no figurines or scene wording; warm up the SDK's Pillow check before concurrent edits
Magnus Persson
a1969df
Fix 'new setting' refusing harmless subjects: the LLM writes only the setting
Magnus Persson
fb7b95f
Translate the visitor's text to English before image generation
Magnus Persson
3c2e42a
Add one-tap edit chips with FLUX.2-klein-4B, shared paid-call accounting and a stale-result guard
Magnus Persson
3b7d0f4
Chips (config/app.yaml edit_chips) send the visitor's current image and a static or LLM-picked instruction to the edit model; the LLM instruction is moderated and policy-checked, the output image is checked before display, and previous images go to history. Create and edit share services/spend.paid_call. A result arriving after New visitor is dropped (session epoch), for Create too. edit_instruction no longer asks for the unused new_prompt. Real-keys check covers two live edits. Library images and lock are left out: a forced rebuild is waiting for review. 415 tests.
Add the HF edit adapter and a model bake-off script; fast model cost measured
Magnus Persson
186ad3c
HFEditProvider (image_to_image) shares an HFRunner with the image adapter: typed errors, billing-safe retries, hard deadline, worker thread. EditModel gets hf_provider and the factory builds the edit provider once an edit model has hf_model. scripts/bakeoff.py compares models on fixed prompts with latency and a contact sheet. First edit bake-off on fal-ai: FLUX.2-klein-4B 3.9-5.2 s, klein-9B 4.1-5.8 s, Kontext-dev 8.6-9.4 s, Qwen-Image-Edit-2511 13.9-14.8 s. FLUX.1-schnell estimate set to the measured 0.003. 388 tests.
Add the Hugging Face image adapter, billing-safe retries and try_image script
Magnus Persson
6494c95
HF Inference Providers adapter (sync client in a worker thread), real image model ids, image_backend hf by default, 402 pauses generation, failures after the provider call keep the estimate unless known unbilled, HF_TOKEN prefix check, shared logging setup.
Safety cases run against the real services; alternatives must not name the original; known-issue marker
Magnus Persson
6419e2f
Phase 3: OpenAI moderation and text adapters, shared HTTP retry helper, safety review fixes
SafetyService runs moderation and the workshop policy in parallel on the final prompt and fails closed. Policy replies are validated; character mode and offer_safe_rewrite have the last word; serious categories never get an alternative; alternatives are cleaned and moderated before display. Fixed internal moderation code set. Rewrite card in the Create tab. 40 SV/EN safety cases replayed with table-driven fakes, plus a script for the real services. 170 tests.
Phase 0 and 1: project setup, config, fakes, Create tab