9router/open-sse/handlers/imageProviders/comfyui.js

13 lines
438 B
JavaScript
Raw Normal View History

2026-05-04 00:29:02 -04:00
// ComfyUI — local, noAuth (placeholder; full graph workflow not implemented)
import { PROVIDER_MEDIA } from "../../providers/index.js";
const BASE_URL = PROVIDER_MEDIA["comfyui"]?.imageConfig?.baseUrl;
2026-05-04 00:29:02 -04:00
export default {
noAuth: true,
buildUrl: () => BASE_URL,
2026-05-04 00:29:02 -04:00
buildHeaders: () => ({ "Content-Type": "application/json" }),
buildBody: (_model, body) => ({ prompt: body.prompt }),
normalize: (responseBody) => responseBody,
};