@comandosai/n8n-nodes-media 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -274,7 +274,15 @@ class ComandosMedia {
|
|
|
274
274
|
if (!prompt)
|
|
275
275
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Prompt is required', { itemIndex: i });
|
|
276
276
|
const request = buildGenerationRequest({ model, prompt, ratio, references, quality, resolution });
|
|
277
|
-
const payload = {
|
|
277
|
+
const payload = {
|
|
278
|
+
...request,
|
|
279
|
+
body: {
|
|
280
|
+
...request.body,
|
|
281
|
+
kie_api_key: kieApiKey,
|
|
282
|
+
},
|
|
283
|
+
licenseKey,
|
|
284
|
+
_v: '0.1.3',
|
|
285
|
+
};
|
|
278
286
|
const response = await this.helpers.request({
|
|
279
287
|
method: 'POST',
|
|
280
288
|
url: `${COMANDOS_API_URL}/tasks`,
|
|
@@ -303,7 +303,15 @@ export class ComandosMedia implements INodeType {
|
|
|
303
303
|
if (!prompt) throw new NodeOperationError(this.getNode(), 'Prompt is required', { itemIndex: i });
|
|
304
304
|
|
|
305
305
|
const request = buildGenerationRequest({ model, prompt, ratio, references, quality, resolution });
|
|
306
|
-
const payload = {
|
|
306
|
+
const payload = {
|
|
307
|
+
...request,
|
|
308
|
+
body: {
|
|
309
|
+
...request.body,
|
|
310
|
+
kie_api_key: kieApiKey,
|
|
311
|
+
},
|
|
312
|
+
licenseKey,
|
|
313
|
+
_v: '0.1.3',
|
|
314
|
+
};
|
|
307
315
|
const response = await this.helpers.request({
|
|
308
316
|
method: 'POST',
|
|
309
317
|
url: `${COMANDOS_API_URL}/tasks`,
|