Files
artcraft/frontend/apps
Tanish Manku d2f8bd3a8f pagedraw(webapp): map resolution/aspect-ratio labels to omni-gen enums
The shared PageDraw lib's PromptBox emits resolution and aspect ratio as UI
labels ("1k", "wide", …), and each host adapter is responsible for mapping
them to the server's CommonResolution / CommonAspectRatio enum values
("one_k", …) — the desktop adapter does this, but the webapp adapter forwarded
the raw label. The omni-gen endpoint then rejected the whole body with
'unknown variant 1k', so every generation 400'd.

Add mapAspectRatio / mapResolution helpers mirroring the desktop PageDraw
adapter and apply them when building the OmniGenImageRequest.
2026-06-16 08:58:54 -07:00
..
2026-03-12 21:35:29 +07:00