UNPKG

n8n-nodes-hjhcomfyui

Version:

n8n node to integrate with ComfyUI stable diffusion workflows

43 lines 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HjhComfyUIApi = void 0; class HjhComfyUIApi { constructor() { this.name = 'hjhComfyUIApi'; this.displayName = 'Hjh ComfyUI API'; this.documentationUrl = 'https://github.com/comfyanonymous/ComfyUI'; this.properties = [ { displayName: 'Hjh API URL', name: 'apiUrl', type: 'string', default: 'http://127.0.0.1:8188', required: true, description: 'The URL of your Hjh ComfyUI instance', }, { displayName: 'Hjh API Key', name: 'apiKey', type: 'string', typeOptions: { password: true, }, default: '', required: false, description: 'API Key if authentication is enabled', }, ]; this.test = { request: { baseURL: '={{$credentials?.apiUrl}}', url: '/system_stats', method: 'GET', headers: { 'Authorization': '={{$credentials?.apiKey ? `Bearer ${$credentials.apiKey}` : undefined}}', }, }, }; } } exports.HjhComfyUIApi = HjhComfyUIApi; //# sourceMappingURL=HjhComfyUIApi.credentials.js.map