mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
* 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.