n8n-nodes-pollinations-v2 1.2.22 → 1.2.23
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.
- package/dist/nodes/Pollinations/Pollinations.node.d.ts +0 -224
- package/dist/nodes/Pollinations/Pollinations.node.js +1 -299
- package/dist/nodes/Pollinations/Pollinations.node.js.map +1 -1
- package/dist/nodes/PollinationsChatModel/PollinationsChatModel.node.js +1 -1
- package/dist/nodes/PollinationsChatModel/PollinationsChatModel.node.js.map +1 -1
- package/dist/nodes/tools/ToolPollinationsAudio/ToolPollinationsAudio.node.d.ts +5 -0
- package/dist/nodes/tools/ToolPollinationsAudio/ToolPollinationsAudio.node.js +117 -0
- package/dist/nodes/tools/ToolPollinationsAudio/ToolPollinationsAudio.node.js.map +1 -0
- package/dist/nodes/tools/ToolPollinationsAudio/pollinations.svg +4 -0
- package/dist/nodes/tools/ToolPollinationsImage/ToolPollinationsImage.node.d.ts +5 -0
- package/dist/nodes/tools/ToolPollinationsImage/ToolPollinationsImage.node.js +154 -0
- package/dist/nodes/tools/ToolPollinationsImage/ToolPollinationsImage.node.js.map +1 -0
- package/dist/nodes/tools/ToolPollinationsImage/pollinations.svg +4 -0
- package/dist/nodes/tools/ToolPollinationsText/ToolPollinationsText.node.d.ts +5 -0
- package/dist/nodes/tools/ToolPollinationsText/ToolPollinationsText.node.js +147 -0
- package/dist/nodes/tools/ToolPollinationsText/ToolPollinationsText.node.js.map +1 -0
- package/dist/nodes/tools/ToolPollinationsText/pollinations.svg +4 -0
- package/dist/nodes/tools/ToolPollinationsVideo/ToolPollinationsVideo.node.d.ts +5 -0
- package/dist/nodes/tools/ToolPollinationsVideo/ToolPollinationsVideo.node.js +154 -0
- package/dist/nodes/tools/ToolPollinationsVideo/ToolPollinationsVideo.node.js.map +1 -0
- package/dist/nodes/tools/ToolPollinationsVideo/pollinations.svg +4 -0
- package/dist/package.json +10 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -2
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
interface ToolCall {
|
|
3
|
-
name: string;
|
|
4
|
-
arguments: Record<string, unknown>;
|
|
5
|
-
}
|
|
6
2
|
export declare class Pollinations implements INodeType {
|
|
7
3
|
description: INodeTypeDescription;
|
|
8
4
|
methods: {
|
|
@@ -11,226 +7,6 @@ export declare class Pollinations implements INodeType {
|
|
|
11
7
|
getVideoModels(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
12
8
|
getTextModels(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
13
9
|
};
|
|
14
|
-
getAvailableTools: {
|
|
15
|
-
getAvailableTools(this: ILoadOptionsFunctions): Promise<({
|
|
16
|
-
name: string;
|
|
17
|
-
description: string;
|
|
18
|
-
schema: {
|
|
19
|
-
type: string;
|
|
20
|
-
properties: {
|
|
21
|
-
prompt: {
|
|
22
|
-
type: string;
|
|
23
|
-
description: string;
|
|
24
|
-
};
|
|
25
|
-
model: {
|
|
26
|
-
type: string;
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
29
|
-
width: {
|
|
30
|
-
type: string;
|
|
31
|
-
description: string;
|
|
32
|
-
};
|
|
33
|
-
height: {
|
|
34
|
-
type: string;
|
|
35
|
-
description: string;
|
|
36
|
-
};
|
|
37
|
-
negative_prompt: {
|
|
38
|
-
type: string;
|
|
39
|
-
description: string;
|
|
40
|
-
};
|
|
41
|
-
seed: {
|
|
42
|
-
type: string;
|
|
43
|
-
description: string;
|
|
44
|
-
};
|
|
45
|
-
count: {
|
|
46
|
-
type: string;
|
|
47
|
-
description: string;
|
|
48
|
-
minimum: number;
|
|
49
|
-
maximum: number;
|
|
50
|
-
};
|
|
51
|
-
enhance: {
|
|
52
|
-
type: string;
|
|
53
|
-
description: string;
|
|
54
|
-
};
|
|
55
|
-
safe: {
|
|
56
|
-
type: string;
|
|
57
|
-
description: string;
|
|
58
|
-
};
|
|
59
|
-
duration?: undefined;
|
|
60
|
-
aspectRatio?: undefined;
|
|
61
|
-
audio?: undefined;
|
|
62
|
-
maxTokens?: undefined;
|
|
63
|
-
temperature?: undefined;
|
|
64
|
-
top_p?: undefined;
|
|
65
|
-
jsonMode?: undefined;
|
|
66
|
-
reasoning_effort?: undefined;
|
|
67
|
-
text?: undefined;
|
|
68
|
-
voice?: undefined;
|
|
69
|
-
format?: undefined;
|
|
70
|
-
};
|
|
71
|
-
required: string[];
|
|
72
|
-
};
|
|
73
|
-
} | {
|
|
74
|
-
name: string;
|
|
75
|
-
description: string;
|
|
76
|
-
schema: {
|
|
77
|
-
type: string;
|
|
78
|
-
properties: {
|
|
79
|
-
prompt: {
|
|
80
|
-
type: string;
|
|
81
|
-
description: string;
|
|
82
|
-
};
|
|
83
|
-
model: {
|
|
84
|
-
type: string;
|
|
85
|
-
description: string;
|
|
86
|
-
};
|
|
87
|
-
duration: {
|
|
88
|
-
type: string;
|
|
89
|
-
description: string;
|
|
90
|
-
};
|
|
91
|
-
width: {
|
|
92
|
-
type: string;
|
|
93
|
-
description: string;
|
|
94
|
-
};
|
|
95
|
-
height: {
|
|
96
|
-
type: string;
|
|
97
|
-
description: string;
|
|
98
|
-
};
|
|
99
|
-
aspectRatio: {
|
|
100
|
-
type: string;
|
|
101
|
-
description: string;
|
|
102
|
-
enum: string[];
|
|
103
|
-
};
|
|
104
|
-
negative_prompt: {
|
|
105
|
-
type: string;
|
|
106
|
-
description: string;
|
|
107
|
-
};
|
|
108
|
-
seed: {
|
|
109
|
-
type: string;
|
|
110
|
-
description: string;
|
|
111
|
-
};
|
|
112
|
-
audio: {
|
|
113
|
-
type: string;
|
|
114
|
-
description: string;
|
|
115
|
-
};
|
|
116
|
-
safe: {
|
|
117
|
-
type: string;
|
|
118
|
-
description: string;
|
|
119
|
-
};
|
|
120
|
-
count?: undefined;
|
|
121
|
-
enhance?: undefined;
|
|
122
|
-
maxTokens?: undefined;
|
|
123
|
-
temperature?: undefined;
|
|
124
|
-
top_p?: undefined;
|
|
125
|
-
jsonMode?: undefined;
|
|
126
|
-
reasoning_effort?: undefined;
|
|
127
|
-
text?: undefined;
|
|
128
|
-
voice?: undefined;
|
|
129
|
-
format?: undefined;
|
|
130
|
-
};
|
|
131
|
-
required: string[];
|
|
132
|
-
};
|
|
133
|
-
} | {
|
|
134
|
-
name: string;
|
|
135
|
-
description: string;
|
|
136
|
-
schema: {
|
|
137
|
-
type: string;
|
|
138
|
-
properties: {
|
|
139
|
-
prompt: {
|
|
140
|
-
type: string;
|
|
141
|
-
description: string;
|
|
142
|
-
};
|
|
143
|
-
model: {
|
|
144
|
-
type: string;
|
|
145
|
-
description: string;
|
|
146
|
-
};
|
|
147
|
-
maxTokens: {
|
|
148
|
-
type: string;
|
|
149
|
-
description: string;
|
|
150
|
-
};
|
|
151
|
-
temperature: {
|
|
152
|
-
type: string;
|
|
153
|
-
description: string;
|
|
154
|
-
minimum: number;
|
|
155
|
-
maximum: number;
|
|
156
|
-
};
|
|
157
|
-
top_p: {
|
|
158
|
-
type: string;
|
|
159
|
-
description: string;
|
|
160
|
-
minimum: number;
|
|
161
|
-
maximum: number;
|
|
162
|
-
};
|
|
163
|
-
seed: {
|
|
164
|
-
type: string;
|
|
165
|
-
description: string;
|
|
166
|
-
};
|
|
167
|
-
jsonMode: {
|
|
168
|
-
type: string;
|
|
169
|
-
description: string;
|
|
170
|
-
};
|
|
171
|
-
reasoning_effort: {
|
|
172
|
-
type: string;
|
|
173
|
-
description: string;
|
|
174
|
-
enum: string[];
|
|
175
|
-
};
|
|
176
|
-
width?: undefined;
|
|
177
|
-
height?: undefined;
|
|
178
|
-
negative_prompt?: undefined;
|
|
179
|
-
count?: undefined;
|
|
180
|
-
enhance?: undefined;
|
|
181
|
-
safe?: undefined;
|
|
182
|
-
duration?: undefined;
|
|
183
|
-
aspectRatio?: undefined;
|
|
184
|
-
audio?: undefined;
|
|
185
|
-
text?: undefined;
|
|
186
|
-
voice?: undefined;
|
|
187
|
-
format?: undefined;
|
|
188
|
-
};
|
|
189
|
-
required: string[];
|
|
190
|
-
};
|
|
191
|
-
} | {
|
|
192
|
-
name: string;
|
|
193
|
-
description: string;
|
|
194
|
-
schema: {
|
|
195
|
-
type: string;
|
|
196
|
-
properties: {
|
|
197
|
-
text: {
|
|
198
|
-
type: string;
|
|
199
|
-
description: string;
|
|
200
|
-
};
|
|
201
|
-
voice: {
|
|
202
|
-
type: string;
|
|
203
|
-
description: string;
|
|
204
|
-
};
|
|
205
|
-
format: {
|
|
206
|
-
type: string;
|
|
207
|
-
description: string;
|
|
208
|
-
enum: string[];
|
|
209
|
-
};
|
|
210
|
-
prompt?: undefined;
|
|
211
|
-
model?: undefined;
|
|
212
|
-
width?: undefined;
|
|
213
|
-
height?: undefined;
|
|
214
|
-
negative_prompt?: undefined;
|
|
215
|
-
seed?: undefined;
|
|
216
|
-
count?: undefined;
|
|
217
|
-
enhance?: undefined;
|
|
218
|
-
safe?: undefined;
|
|
219
|
-
duration?: undefined;
|
|
220
|
-
aspectRatio?: undefined;
|
|
221
|
-
audio?: undefined;
|
|
222
|
-
maxTokens?: undefined;
|
|
223
|
-
temperature?: undefined;
|
|
224
|
-
top_p?: undefined;
|
|
225
|
-
jsonMode?: undefined;
|
|
226
|
-
reasoning_effort?: undefined;
|
|
227
|
-
};
|
|
228
|
-
required: string[];
|
|
229
|
-
};
|
|
230
|
-
})[]>;
|
|
231
|
-
};
|
|
232
10
|
};
|
|
233
11
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
234
|
-
static executeTool(this: IExecuteFunctions, toolCall: ToolCall): Promise<INodeExecutionData[][]>;
|
|
235
12
|
}
|
|
236
|
-
export {};
|
|
@@ -19,9 +19,9 @@ class Pollinations {
|
|
|
19
19
|
defaults: {
|
|
20
20
|
name: 'Pollinations',
|
|
21
21
|
},
|
|
22
|
-
usableAsTool: true,
|
|
23
22
|
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
24
23
|
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
24
|
+
usableAsTool: true,
|
|
25
25
|
credentials: [
|
|
26
26
|
{
|
|
27
27
|
name: 'pollinationsApi',
|
|
@@ -127,194 +127,11 @@ class Pollinations {
|
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
},
|
|
130
|
-
getAvailableTools: {
|
|
131
|
-
async getAvailableTools() {
|
|
132
|
-
return [
|
|
133
|
-
{
|
|
134
|
-
name: 'generate_image',
|
|
135
|
-
description: 'Generate images using AI models like Flux, Turbo, and more. Provide a text prompt describing the image you want to create.',
|
|
136
|
-
schema: {
|
|
137
|
-
type: 'object',
|
|
138
|
-
properties: {
|
|
139
|
-
prompt: {
|
|
140
|
-
type: 'string',
|
|
141
|
-
description: 'Text description of the image to generate',
|
|
142
|
-
},
|
|
143
|
-
model: {
|
|
144
|
-
type: 'string',
|
|
145
|
-
description: 'AI model to use (optional, defaults to flux). Many models available including flux, turbo, gpt-image, kontext, search, sdxl-turbo, and more.',
|
|
146
|
-
},
|
|
147
|
-
width: {
|
|
148
|
-
type: 'number',
|
|
149
|
-
description: 'Image width in pixels (optional, 16-2048)',
|
|
150
|
-
},
|
|
151
|
-
height: {
|
|
152
|
-
type: 'number',
|
|
153
|
-
description: 'Image height in pixels (optional, 16-2048)',
|
|
154
|
-
},
|
|
155
|
-
negative_prompt: {
|
|
156
|
-
type: 'string',
|
|
157
|
-
description: 'What to avoid in the generated image (optional)',
|
|
158
|
-
},
|
|
159
|
-
seed: {
|
|
160
|
-
type: 'number',
|
|
161
|
-
description: 'Random seed for reproducible results (optional, -1 for random)',
|
|
162
|
-
},
|
|
163
|
-
count: {
|
|
164
|
-
type: 'number',
|
|
165
|
-
description: 'Number of images to generate (optional, 1-4, premium models only)',
|
|
166
|
-
minimum: 1,
|
|
167
|
-
maximum: 4,
|
|
168
|
-
},
|
|
169
|
-
enhance: {
|
|
170
|
-
type: 'boolean',
|
|
171
|
-
description: 'Whether to use AI to improve the prompt (optional)',
|
|
172
|
-
},
|
|
173
|
-
safe: {
|
|
174
|
-
type: 'boolean',
|
|
175
|
-
description: 'Whether to enable strict NSFW content filtering (optional)',
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
required: ['prompt'],
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'generate_video',
|
|
183
|
-
description: 'Generate videos from text prompts or images. Create short video clips using AI models.',
|
|
184
|
-
schema: {
|
|
185
|
-
type: 'object',
|
|
186
|
-
properties: {
|
|
187
|
-
prompt: {
|
|
188
|
-
type: 'string',
|
|
189
|
-
description: 'Text description of the video to generate',
|
|
190
|
-
},
|
|
191
|
-
model: {
|
|
192
|
-
type: 'string',
|
|
193
|
-
description: 'AI model to use for video generation (optional, defaults to veo). Available models include veo, seedance, and more.',
|
|
194
|
-
},
|
|
195
|
-
duration: {
|
|
196
|
-
type: 'number',
|
|
197
|
-
description: 'Video duration in seconds (optional, veo: 4/6/8, seedance: 2-10)',
|
|
198
|
-
},
|
|
199
|
-
width: {
|
|
200
|
-
type: 'number',
|
|
201
|
-
description: 'Video width in pixels (optional, 256-2048)',
|
|
202
|
-
},
|
|
203
|
-
height: {
|
|
204
|
-
type: 'number',
|
|
205
|
-
description: 'Video height in pixels (optional, 256-2048)',
|
|
206
|
-
},
|
|
207
|
-
aspectRatio: {
|
|
208
|
-
type: 'string',
|
|
209
|
-
description: 'Video aspect ratio (optional, "16:9" or "9:16")',
|
|
210
|
-
enum: ['16:9', '9:16'],
|
|
211
|
-
},
|
|
212
|
-
negative_prompt: {
|
|
213
|
-
type: 'string',
|
|
214
|
-
description: 'What to avoid in the generated video (optional)',
|
|
215
|
-
},
|
|
216
|
-
seed: {
|
|
217
|
-
type: 'number',
|
|
218
|
-
description: 'Random seed for reproducible results (optional, -1 for random)',
|
|
219
|
-
},
|
|
220
|
-
audio: {
|
|
221
|
-
type: 'boolean',
|
|
222
|
-
description: 'Whether to enable audio generation for video (optional, veo only)',
|
|
223
|
-
},
|
|
224
|
-
safe: {
|
|
225
|
-
type: 'boolean',
|
|
226
|
-
description: 'Whether to enable strict NSFW content filtering (optional)',
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
required: ['prompt'],
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
name: 'generate_text',
|
|
234
|
-
description: 'Generate text using various AI language models including OpenAI, Claude, Gemini, and more.',
|
|
235
|
-
schema: {
|
|
236
|
-
type: 'object',
|
|
237
|
-
properties: {
|
|
238
|
-
prompt: {
|
|
239
|
-
type: 'string',
|
|
240
|
-
description: 'Text prompt for generation (for simple text) OR messages array for chat completion',
|
|
241
|
-
},
|
|
242
|
-
model: {
|
|
243
|
-
type: 'string',
|
|
244
|
-
description: 'AI model to use for text generation (optional, defaults to openai). Supports many models including GPT, Claude, Gemini, Mistral, and more.',
|
|
245
|
-
},
|
|
246
|
-
maxTokens: {
|
|
247
|
-
type: 'number',
|
|
248
|
-
description: 'Maximum number of tokens to generate (optional)',
|
|
249
|
-
},
|
|
250
|
-
temperature: {
|
|
251
|
-
type: 'number',
|
|
252
|
-
description: 'Controls randomness (optional, 0-2)',
|
|
253
|
-
minimum: 0,
|
|
254
|
-
maximum: 2,
|
|
255
|
-
},
|
|
256
|
-
top_p: {
|
|
257
|
-
type: 'number',
|
|
258
|
-
description: 'Nucleus sampling parameter (optional, 0-1)',
|
|
259
|
-
minimum: 0,
|
|
260
|
-
maximum: 1,
|
|
261
|
-
},
|
|
262
|
-
seed: {
|
|
263
|
-
type: 'number',
|
|
264
|
-
description: 'Random seed for reproducible results (optional, -1 for random)',
|
|
265
|
-
},
|
|
266
|
-
jsonMode: {
|
|
267
|
-
type: 'boolean',
|
|
268
|
-
description: 'Whether to enable JSON mode for structured output (optional)',
|
|
269
|
-
},
|
|
270
|
-
reasoning_effort: {
|
|
271
|
-
type: 'string',
|
|
272
|
-
description: 'Reasoning effort for o1/o3/deepseek-r1 models (optional)',
|
|
273
|
-
enum: ['high', 'medium', 'low', 'minimal', 'none'],
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
required: ['prompt'],
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
name: 'generate_audio',
|
|
281
|
-
description: 'Convert text to speech using AI. Generate audio narration with different voices and formats.',
|
|
282
|
-
schema: {
|
|
283
|
-
type: 'object',
|
|
284
|
-
properties: {
|
|
285
|
-
text: {
|
|
286
|
-
type: 'string',
|
|
287
|
-
description: 'Text to convert to speech',
|
|
288
|
-
},
|
|
289
|
-
voice: {
|
|
290
|
-
type: 'string',
|
|
291
|
-
description: 'Voice to use for the audio (optional, defaults to alloy). Available voices include alloy, echo, fable, onyx, nova, shimmer, and many more.',
|
|
292
|
-
},
|
|
293
|
-
format: {
|
|
294
|
-
type: 'string',
|
|
295
|
-
description: 'Audio format (optional, defaults to mp3)',
|
|
296
|
-
enum: ['mp3', 'wav', 'flac', 'aac'],
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
required: ['text'],
|
|
300
|
-
},
|
|
301
|
-
},
|
|
302
|
-
];
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
130
|
};
|
|
306
131
|
}
|
|
307
132
|
async execute() {
|
|
308
133
|
const items = this.getInputData();
|
|
309
134
|
const returnData = [];
|
|
310
|
-
try {
|
|
311
|
-
const toolCall = this.getNodeParameter('toolCall', 0, null);
|
|
312
|
-
if (toolCall) {
|
|
313
|
-
return Pollinations.executeTool.call(this, toolCall);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
catch {
|
|
317
|
-
}
|
|
318
135
|
const operation = this.getNodeParameter('operation', 0);
|
|
319
136
|
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
320
137
|
try {
|
|
@@ -352,121 +169,6 @@ class Pollinations {
|
|
|
352
169
|
}
|
|
353
170
|
return [returnData];
|
|
354
171
|
}
|
|
355
|
-
static async executeTool(toolCall) {
|
|
356
|
-
const { name, arguments: args } = toolCall;
|
|
357
|
-
try {
|
|
358
|
-
let result;
|
|
359
|
-
switch (name) {
|
|
360
|
-
case 'generate_image': {
|
|
361
|
-
const imageArgs = args;
|
|
362
|
-
const originalGetNodeParameter = this.getNodeParameter;
|
|
363
|
-
this.getNodeParameter = ((key) => {
|
|
364
|
-
var _a, _b, _c;
|
|
365
|
-
switch (key) {
|
|
366
|
-
case 'operation': return 'imageGeneration';
|
|
367
|
-
case 'prompt': return imageArgs.prompt;
|
|
368
|
-
case 'model': return imageArgs.model || 'flux';
|
|
369
|
-
case 'width': return imageArgs.width || 1024;
|
|
370
|
-
case 'height': return imageArgs.height || 1024;
|
|
371
|
-
case 'additionalOptions': return {
|
|
372
|
-
seed: (_a = imageArgs.seed) !== null && _a !== void 0 ? _a : -1,
|
|
373
|
-
nologo: false,
|
|
374
|
-
private: false,
|
|
375
|
-
safe: (_b = imageArgs.safe) !== null && _b !== void 0 ? _b : false,
|
|
376
|
-
enhance: (_c = imageArgs.enhance) !== null && _c !== void 0 ? _c : false,
|
|
377
|
-
transparent: false,
|
|
378
|
-
count: imageArgs.count || 1,
|
|
379
|
-
imageUrl: undefined,
|
|
380
|
-
negative_prompt: imageArgs.negative_prompt || 'worst quality, blurry',
|
|
381
|
-
quality: 'medium',
|
|
382
|
-
};
|
|
383
|
-
default: return originalGetNodeParameter.call(this, key, 0);
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
result = await imageGeneration_1.executeImageGeneration.call(this, 0);
|
|
387
|
-
this.getNodeParameter = originalGetNodeParameter;
|
|
388
|
-
break;
|
|
389
|
-
}
|
|
390
|
-
case 'generate_video': {
|
|
391
|
-
const videoArgs = args;
|
|
392
|
-
const originalGetNodeParameter = this.getNodeParameter;
|
|
393
|
-
this.getNodeParameter = ((key) => {
|
|
394
|
-
var _a, _b, _c;
|
|
395
|
-
switch (key) {
|
|
396
|
-
case 'operation': return 'videoGeneration';
|
|
397
|
-
case 'prompt': return videoArgs.prompt;
|
|
398
|
-
case 'videoModel': return videoArgs.model || 'veo';
|
|
399
|
-
case 'width': return videoArgs.width || 1024;
|
|
400
|
-
case 'height': return videoArgs.height || 576;
|
|
401
|
-
case 'videoAdditionalOptions': return {
|
|
402
|
-
aspectRatio: videoArgs.aspectRatio || '16:9',
|
|
403
|
-
duration: videoArgs.duration || 4,
|
|
404
|
-
audio: (_a = videoArgs.audio) !== null && _a !== void 0 ? _a : false,
|
|
405
|
-
imageUrl: undefined,
|
|
406
|
-
negative_prompt: videoArgs.negative_prompt || 'worst quality, blurry',
|
|
407
|
-
private: false,
|
|
408
|
-
safe: (_b = videoArgs.safe) !== null && _b !== void 0 ? _b : false,
|
|
409
|
-
seed: (_c = videoArgs.seed) !== null && _c !== void 0 ? _c : -1,
|
|
410
|
-
};
|
|
411
|
-
default: return originalGetNodeParameter.call(this, key, 0);
|
|
412
|
-
}
|
|
413
|
-
});
|
|
414
|
-
result = await videoGeneration_1.executeVideoGeneration.call(this, 0);
|
|
415
|
-
this.getNodeParameter = originalGetNodeParameter;
|
|
416
|
-
break;
|
|
417
|
-
}
|
|
418
|
-
case 'generate_text': {
|
|
419
|
-
const textArgs = args;
|
|
420
|
-
const originalGetNodeParameter = this.getNodeParameter;
|
|
421
|
-
this.getNodeParameter = ((key) => {
|
|
422
|
-
var _a, _b;
|
|
423
|
-
switch (key) {
|
|
424
|
-
case 'operation': return 'textGeneration';
|
|
425
|
-
case 'textGenerationType': return 'chat';
|
|
426
|
-
case 'textPrompt': return textArgs.prompt;
|
|
427
|
-
case 'textModel': return textArgs.model || 'openai';
|
|
428
|
-
case 'messages': return { messageValues: [{ role: 'user', content: textArgs.prompt }] };
|
|
429
|
-
case 'textAdditionalOptions': return {
|
|
430
|
-
jsonMode: (_a = textArgs.jsonMode) !== null && _a !== void 0 ? _a : false,
|
|
431
|
-
max_tokens: textArgs.maxTokens || 1000,
|
|
432
|
-
reasoning_effort: textArgs.reasoning_effort || 'medium',
|
|
433
|
-
seed: (_b = textArgs.seed) !== null && _b !== void 0 ? _b : -1,
|
|
434
|
-
temperature: textArgs.temperature || 1,
|
|
435
|
-
thinking_budget: 0,
|
|
436
|
-
top_p: textArgs.top_p || 1,
|
|
437
|
-
};
|
|
438
|
-
default: return originalGetNodeParameter.call(this, key, 0);
|
|
439
|
-
}
|
|
440
|
-
});
|
|
441
|
-
result = await textGeneration_1.executeTextGeneration.call(this, 0);
|
|
442
|
-
this.getNodeParameter = originalGetNodeParameter;
|
|
443
|
-
break;
|
|
444
|
-
}
|
|
445
|
-
case 'generate_audio': {
|
|
446
|
-
const audioArgs = args;
|
|
447
|
-
const originalGetNodeParameter = this.getNodeParameter;
|
|
448
|
-
this.getNodeParameter = ((key) => {
|
|
449
|
-
switch (key) {
|
|
450
|
-
case 'operation': return 'audioGeneration';
|
|
451
|
-
case 'audioText': return audioArgs.text;
|
|
452
|
-
case 'audioVoice': return audioArgs.voice || 'alloy';
|
|
453
|
-
case 'audioFormat': return audioArgs.format || 'mp3';
|
|
454
|
-
default: return originalGetNodeParameter.call(this, key, 0);
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
result = await audioGeneration_1.executeAudioGeneration.call(this, 0);
|
|
458
|
-
this.getNodeParameter = originalGetNodeParameter;
|
|
459
|
-
break;
|
|
460
|
-
}
|
|
461
|
-
default:
|
|
462
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Tool ${name} is not supported`);
|
|
463
|
-
}
|
|
464
|
-
return [[result]];
|
|
465
|
-
}
|
|
466
|
-
catch (error) {
|
|
467
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Tool execution failed: ${error.message}`);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
172
|
}
|
|
471
173
|
exports.Pollinations = Pollinations;
|
|
472
174
|
//# sourceMappingURL=Pollinations.node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pollinations.node.js","sourceRoot":"","sources":["../../../nodes/Pollinations/Pollinations.node.ts"],"names":[],"mappings":";;;AAQA,+CAAuE;AACvE,kEAAgG;AAChG,kEAAgG;AAChG,gEAA6F;AAC7F,kEAAgG;AAqDhG,MAAa,YAAY;IAAzB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,uBAAuB;YAC7B,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,gEAAgE;YAC7E,QAAQ,EAAE;gBACT,IAAI,EAAE,cAAc;aACpB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,iBAAiB;oBACvB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,kBAAkB;4BACxB,KAAK,EAAE,iBAAiB;4BACxB,WAAW,EAAE,mCAAmC;4BAChD,MAAM,EAAE,mBAAmB;yBAC3B;wBACD;4BACC,IAAI,EAAE,kBAAkB;4BACxB,KAAK,EAAE,iBAAiB;4BACxB,WAAW,EAAE,qCAAqC;4BAClD,MAAM,EAAE,kBAAkB;yBAC1B;wBACD;4BACC,IAAI,EAAE,iBAAiB;4BACvB,KAAK,EAAE,gBAAgB;4BACvB,WAAW,EAAE,wCAAwC;4BACrD,MAAM,EAAE,eAAe;yBACvB;wBACD;4BACC,IAAI,EAAE,kBAAkB;4BACxB,KAAK,EAAE,iBAAiB;4BACxB,WA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AI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;wBAC1C,KAAK;wBACL,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;qBAC/B,CAAC,CAAC;gBACJ,CAAC;qBAAM,CAAC;oBACP,MAAM,KAAK,CAAC;gBACb,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA3KD,oCA2KC"}
|
|
@@ -199,7 +199,6 @@ class PollinationsChatModel {
|
|
|
199
199
|
defaults: {
|
|
200
200
|
name: 'Pollinations Chat Model',
|
|
201
201
|
},
|
|
202
|
-
usableAsTool: true,
|
|
203
202
|
codex: {
|
|
204
203
|
categories: ['AI'],
|
|
205
204
|
subcategories: {
|
|
@@ -216,6 +215,7 @@ class PollinationsChatModel {
|
|
|
216
215
|
inputs: [],
|
|
217
216
|
outputs: [n8n_workflow_1.NodeConnectionTypes.AiLanguageModel],
|
|
218
217
|
outputNames: ['Model'],
|
|
218
|
+
usableAsTool: true,
|
|
219
219
|
credentials: [
|
|
220
220
|
{
|
|
221
221
|
name: 'pollinationsApi',
|