n8n-nodes-pollinations-ai 1.2.0 → 1.3.0

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.
@@ -40,14 +40,14 @@ class PollinationsChatModel {
40
40
  properties: [
41
41
  // Model - dynamic loading
42
42
  {
43
- displayName: 'Model',
43
+ displayName: 'Model Name or ID',
44
44
  name: 'model',
45
45
  type: 'options',
46
- default: 'openai',
46
+ default: '',
47
47
  typeOptions: {
48
48
  loadOptionsMethod: 'getChatModels',
49
49
  },
50
- description: 'The model to use for chat completions',
50
+ description: 'The model to use for chat completions. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
51
51
  },
52
52
  // Temperature
53
53
  {
@@ -70,28 +70,6 @@ class PollinationsChatModel {
70
70
  placeholder: 'Add Option',
71
71
  default: {},
72
72
  options: [
73
- {
74
- displayName: 'Max Tokens',
75
- name: 'maxTokens',
76
- type: 'number',
77
- default: 0,
78
- description: 'Maximum tokens in response. 0 uses model default.',
79
- typeOptions: {
80
- minValue: 0,
81
- },
82
- },
83
- {
84
- displayName: 'Top P',
85
- name: 'topP',
86
- type: 'number',
87
- default: 1,
88
- typeOptions: {
89
- minValue: 0,
90
- maxValue: 1,
91
- numberPrecision: 2,
92
- },
93
- description: 'Nucleus sampling: consider tokens with top_p probability mass',
94
- },
95
73
  {
96
74
  displayName: 'Frequency Penalty',
97
75
  name: 'frequencyPenalty',
@@ -104,6 +82,16 @@ class PollinationsChatModel {
104
82
  },
105
83
  description: 'Reduce repetition of token sequences. Higher values decrease repetition.',
106
84
  },
85
+ {
86
+ displayName: 'Max Tokens',
87
+ name: 'maxTokens',
88
+ type: 'number',
89
+ default: 0,
90
+ description: 'Maximum tokens in response. 0 uses model default.',
91
+ typeOptions: {
92
+ minValue: 0,
93
+ },
94
+ },
107
95
  {
108
96
  displayName: 'Presence Penalty',
109
97
  name: 'presencePenalty',
@@ -126,9 +114,22 @@ class PollinationsChatModel {
126
114
  },
127
115
  description: 'Request timeout in milliseconds',
128
116
  },
117
+ {
118
+ displayName: 'Top P',
119
+ name: 'topP',
120
+ type: 'number',
121
+ default: 1,
122
+ typeOptions: {
123
+ minValue: 0,
124
+ maxValue: 1,
125
+ numberPrecision: 2,
126
+ },
127
+ description: 'Nucleus sampling: consider tokens with top_p probability mass',
128
+ },
129
129
  ],
130
130
  },
131
131
  ],
132
+ usableAsTool: true,
132
133
  };
133
134
  this.methods = {
134
135
  loadOptions: {
package/package.json CHANGED
@@ -1,77 +1,68 @@
1
1
  {
2
- "name": "n8n-nodes-pollinations-ai",
3
- "version": "1.2.0",
4
- "description": "n8n community node for Pollinations AI - image generation and chat models",
5
- "keywords": [
6
- "n8n-community-node-package",
7
- "n8n",
8
- "pollinations",
9
- "ai",
10
- "image-generation",
11
- "flux",
12
- "chat-model",
13
- "llm",
14
- "langchain"
15
- ],
16
- "license": "MIT",
17
- "homepage": "https://github.com/new-xmon-df/n8n-nodes-pollinations-ai",
18
- "author": {
19
- "name": "Juanjo García",
20
- "email": "juanjogarciae@gmail.com"
21
- },
22
- "repository": {
23
- "type": "git",
24
- "url": "git+https://github.com/new-xmon-df/n8n-nodes-pollinations-ai.git"
25
- },
26
- "engines": {
27
- "node": ">=18.0.0"
28
- },
29
- "main": "index.js",
30
- "files": [
31
- "dist",
32
- "nodes",
33
- "credentials",
34
- "index.ts",
35
- "tsconfig.json",
36
- "gulpfile.js"
37
- ],
38
- "n8n": {
39
- "n8nNodesApiVersion": 1,
40
- "credentials": [
41
- "dist/credentials/PollinationsApi.credentials.js"
42
- ],
43
- "nodes": [
44
- "dist/nodes/Pollinations/Pollinations.node.js",
45
- "dist/nodes/Pollinations/PollinationsChatModel.node.js"
46
- ]
47
- },
48
- "scripts": {
49
- "prepare": "npm run build",
50
- "build": "tsc && gulp build:icons",
51
- "dev": "tsc --watch",
52
- "lint": "eslint . --ext .ts",
53
- "lintfix": "eslint . --ext .ts --fix",
54
- "typecheck": "tsc --noEmit",
55
- "prepublishOnly": "npm run build"
56
- },
57
- "devDependencies": {
58
- "@semantic-release/changelog": "^6.0.3",
59
- "@semantic-release/git": "^10.0.1",
60
- "@types/node": "^20.10.0",
61
- "@typescript-eslint/eslint-plugin": "^6.0.0",
62
- "@typescript-eslint/parser": "^6.0.0",
63
- "conventional-changelog-conventionalcommits": "^8.0.0",
64
- "eslint": "^8.56.0",
65
- "gulp": "^4.0.2",
66
- "n8n-workflow": "^1.23.0",
67
- "semantic-release": "^24.2.4",
68
- "typescript": "^5.3.0"
69
- },
70
- "peerDependencies": {
71
- "n8n-workflow": "*"
72
- },
73
- "dependencies": {
74
- "@langchain/core": "^1.1.12",
75
- "@langchain/openai": "^1.2.1"
76
- }
2
+ "name": "n8n-nodes-pollinations-ai",
3
+ "version": "1.3.0",
4
+ "description": "n8n community node for Pollinations AI - image generation and chat models",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "n8n",
8
+ "pollinations",
9
+ "ai",
10
+ "image-generation",
11
+ "flux",
12
+ "chat-model",
13
+ "llm",
14
+ "langchain"
15
+ ],
16
+ "license": "MIT",
17
+ "homepage": "https://github.com/new-xmon-df/n8n-nodes-pollinations-ai",
18
+ "author": {
19
+ "name": "Juanjo García",
20
+ "email": "juanjogarciae@gmail.com"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/new-xmon-df/n8n-nodes-pollinations-ai.git"
25
+ },
26
+ "engines": {
27
+ "node": ">=18.0.0"
28
+ },
29
+ "main": "index.js",
30
+ "files": [
31
+ "dist"
32
+ ],
33
+ "n8n": {
34
+ "n8nNodesApiVersion": 1,
35
+ "credentials": [
36
+ "dist/credentials/PollinationsApi.credentials.js"
37
+ ],
38
+ "nodes": [
39
+ "dist/nodes/Pollinations/Pollinations.node.js",
40
+ "dist/nodes/Pollinations/PollinationsChatModel.node.js"
41
+ ],
42
+ "strict": false
43
+ },
44
+ "scripts": {
45
+ "prepare": "npm run build",
46
+ "build": "n8n-node build",
47
+ "dev": "n8n-node dev",
48
+ "lint": "n8n-node lint",
49
+ "lintfix": "n8n-node lint --fix",
50
+ "typecheck": "tsc --noEmit",
51
+ "prepublishOnly": "npm run build"
52
+ },
53
+ "devDependencies": {
54
+ "@n8n/node-cli": "^0.17.0",
55
+ "@types/node": "^20.10.0",
56
+ "eslint": "^9.32.0",
57
+ "n8n-workflow": "^1.23.0",
58
+ "prettier": "^3.6.2",
59
+ "typescript": "^5.9.2"
60
+ },
61
+ "peerDependencies": {
62
+ "n8n-workflow": "*"
63
+ },
64
+ "dependencies": {
65
+ "@langchain/core": "^1.1.12",
66
+ "@langchain/openai": "^1.2.1"
67
+ }
77
68
  }
@@ -1,41 +0,0 @@
1
- import {
2
- IAuthenticateGeneric,
3
- ICredentialTestRequest,
4
- ICredentialType,
5
- INodeProperties,
6
- } from 'n8n-workflow';
7
-
8
- export class PollinationsApi implements ICredentialType {
9
- name = 'pollinationsApi';
10
- displayName = 'Pollinations API';
11
- documentationUrl = 'https://github.com/new-xmon-df/n8n-nodes-pollinations-ai#credentials';
12
-
13
- properties: INodeProperties[] = [
14
- {
15
- displayName: 'API Key',
16
- name: 'apiKey',
17
- type: 'string',
18
- typeOptions: { password: true },
19
- default: '',
20
- required: true,
21
- description:
22
- 'Your Pollinations API Key (pk_ or sk_). Get it at https://enter.pollinations.ai. The available models will be filtered based on your key permissions.',
23
- },
24
- ];
25
-
26
- authenticate: IAuthenticateGeneric = {
27
- type: 'generic',
28
- properties: {
29
- headers: {
30
- Authorization: '=Bearer {{$credentials.apiKey}}',
31
- },
32
- },
33
- };
34
-
35
- test: ICredentialTestRequest = {
36
- request: {
37
- baseURL: 'https://gen.pollinations.ai',
38
- url: '/image/models',
39
- },
40
- };
41
- }
package/gulpfile.js DELETED
@@ -1,7 +0,0 @@
1
- const { src, dest } = require('gulp');
2
-
3
- function buildIcons() {
4
- return src('nodes/**/*.svg').pipe(dest('dist/nodes'));
5
- }
6
-
7
- exports['build:icons'] = buildIcons;
package/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './credentials/PollinationsApi.credentials';
2
- export * from './nodes/Pollinations/Pollinations.node';
@@ -1,19 +0,0 @@
1
- {
2
- "node": "n8n-nodes-pollinations-ai.pollinations",
3
- "nodeVersion": "1.0",
4
- "codexVersion": "1.0",
5
- "categories": ["Utility"],
6
- "resources": {
7
- "credentialDocumentation": [
8
- {
9
- "url": "https://enter.pollinations.ai/api/docs"
10
- }
11
- ],
12
- "primaryDocumentation": [
13
- {
14
- "url": "https://enter.pollinations.ai/api/docs"
15
- }
16
- ]
17
- },
18
- "alias": ["image", "ai", "generation", "flux", "art", "text", "llm", "chat", "pollinations", "image generation", "text generation", "artificial intelligence", "gpt", "claude", "mistral", "deepseek"]
19
- }