Files
OmniRoute/src
Diego Rodrigues de Sa e Souza ef777d77e1 feat: editable ComfyUI base-URL field + per-connection override for image/video/music generation (#6928) (#7232)
* feat(providers): editable ComfyUI base-URL field + per-connection override for image/video/music generation (#6928)

Adds a shared resolveComfyUiBaseUrl() helper (open-sse/utils/comfyuiClient.ts) that
prefers a per-connection providerSpecificData.baseUrl override over the registry
default, wired through the comfyui dispatch branch in the image, video, and music
generation handlers plus a best-effort authType:"none" credential lookup in all
three /v1/{images,videos,music}/generations routes (never hard-fails when no
connection exists, so zero-config localhost users are unaffected).

Surfaces an editable base-URL field on the ComfyUI connection form by adding it to
CONFIGURABLE_BASE_URL_PROVIDERS / DEFAULT_PROVIDER_BASE_URLS /
getProviderBaseUrlPlaceholder in providerPageHelpers.ts, so Docker-network setups
(e.g. http://comfyui:8188) can be configured the same way self-hosted chat
providers are.

Closes #6928

* refactor(6928): extract local-override credential lookup in media routes

The inline per-connection override block nested if>if inside the music and
videos POST handlers, taking each to cognitive complexity 16 (>15) — two NEW
violations that broke check:complexity-ratchets (892 > baseline 890).
Extracted resolveLocalOverrideCredentials() in both routes; behaviour is
unchanged. cognitive-complexity back to 890 = baseline.
2026-07-17 10:40:22 -03:00
..
2026-07-07 13:14:06 -03:00
2026-07-13 09:12:40 -03:00
2026-06-25 13:17:40 -03:00
2026-06-22 03:17:02 -03:00
2026-06-27 09:07:12 -03:00
2026-07-13 09:12:40 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 16:51:03 -03:00