node-red-contrib-ollama 0.1.4 → 0.1.6

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.
@@ -0,0 +1,407 @@
1
+ [
2
+ {
3
+ "id": "3bccaf6e46d3dbf5",
4
+ "type": "tab",
5
+ "label": "Flow 1",
6
+ "disabled": false,
7
+ "info": "",
8
+ "env": []
9
+ },
10
+ {
11
+ "id": "06ce708dd0b486b7",
12
+ "type": "inject",
13
+ "z": "3bccaf6e46d3dbf5",
14
+ "name": "Trigger",
15
+ "props": [
16
+ {
17
+ "p": "payload"
18
+ }
19
+ ],
20
+ "repeat": "",
21
+ "crontab": "",
22
+ "once": false,
23
+ "onceDelay": 0.1,
24
+ "topic": "",
25
+ "payload": "{\"model\":\"openhermes-backup\"}",
26
+ "payloadType": "json",
27
+ "x": 270,
28
+ "y": 260,
29
+ "wires": [
30
+ [
31
+ "6625b01de986973a"
32
+ ]
33
+ ]
34
+ },
35
+ {
36
+ "id": "03ee0eeb510c4079",
37
+ "type": "debug",
38
+ "z": "3bccaf6e46d3dbf5",
39
+ "name": "debug 1",
40
+ "active": true,
41
+ "tosidebar": true,
42
+ "console": false,
43
+ "tostatus": false,
44
+ "complete": "payload",
45
+ "targetType": "msg",
46
+ "statusVal": "",
47
+ "statusType": "auto",
48
+ "x": 800,
49
+ "y": 80,
50
+ "wires": []
51
+ },
52
+ {
53
+ "id": "69845d77175921c8",
54
+ "type": "ollama-list",
55
+ "z": "3bccaf6e46d3dbf5",
56
+ "name": "List",
57
+ "x": 430,
58
+ "y": 440,
59
+ "wires": [
60
+ [
61
+ "03ee0eeb510c4079"
62
+ ]
63
+ ]
64
+ },
65
+ {
66
+ "id": "e15148cc2c0ff715",
67
+ "type": "ollama-show",
68
+ "z": "3bccaf6e46d3dbf5",
69
+ "name": "Show",
70
+ "x": 430,
71
+ "y": 620,
72
+ "wires": [
73
+ [
74
+ "03ee0eeb510c4079"
75
+ ]
76
+ ]
77
+ },
78
+ {
79
+ "id": "9a8ad3fb63fbfdee",
80
+ "type": "ollama-copy",
81
+ "z": "3bccaf6e46d3dbf5",
82
+ "name": "Copy",
83
+ "x": 430,
84
+ "y": 140,
85
+ "wires": [
86
+ [
87
+ "03ee0eeb510c4079"
88
+ ]
89
+ ]
90
+ },
91
+ {
92
+ "id": "6625b01de986973a",
93
+ "type": "ollama-delete",
94
+ "z": "3bccaf6e46d3dbf5",
95
+ "name": "Delete",
96
+ "x": 430,
97
+ "y": 260,
98
+ "wires": [
99
+ [
100
+ "03ee0eeb510c4079"
101
+ ]
102
+ ]
103
+ },
104
+ {
105
+ "id": "dcbd66b2fb80a571",
106
+ "type": "inject",
107
+ "z": "3bccaf6e46d3dbf5",
108
+ "name": "Trigger",
109
+ "props": [
110
+ {
111
+ "p": "payload"
112
+ }
113
+ ],
114
+ "repeat": "",
115
+ "crontab": "",
116
+ "once": false,
117
+ "onceDelay": 0.1,
118
+ "topic": "",
119
+ "payload": "",
120
+ "payloadType": "date",
121
+ "x": 270,
122
+ "y": 440,
123
+ "wires": [
124
+ [
125
+ "69845d77175921c8"
126
+ ]
127
+ ]
128
+ },
129
+ {
130
+ "id": "b477f96fedaa3cbb",
131
+ "type": "inject",
132
+ "z": "3bccaf6e46d3dbf5",
133
+ "name": "Trigger",
134
+ "props": [
135
+ {
136
+ "p": "payload"
137
+ }
138
+ ],
139
+ "repeat": "",
140
+ "crontab": "",
141
+ "once": false,
142
+ "onceDelay": 0.1,
143
+ "topic": "",
144
+ "payload": "{\"name\":\"openhermes\"}",
145
+ "payloadType": "json",
146
+ "x": 270,
147
+ "y": 620,
148
+ "wires": [
149
+ [
150
+ "e15148cc2c0ff715"
151
+ ]
152
+ ]
153
+ },
154
+ {
155
+ "id": "41b6514086742437",
156
+ "type": "inject",
157
+ "z": "3bccaf6e46d3dbf5",
158
+ "name": "Trigger",
159
+ "props": [
160
+ {
161
+ "p": "payload"
162
+ }
163
+ ],
164
+ "repeat": "",
165
+ "crontab": "",
166
+ "once": false,
167
+ "onceDelay": 0.1,
168
+ "topic": "",
169
+ "payload": "{\"source\":\"openhermes\",\"destination\":\"openhermes-backup\"}",
170
+ "payloadType": "json",
171
+ "x": 270,
172
+ "y": 140,
173
+ "wires": [
174
+ [
175
+ "9a8ad3fb63fbfdee"
176
+ ]
177
+ ]
178
+ },
179
+ {
180
+ "id": "600b4633a7e30d56",
181
+ "type": "ollama-pull",
182
+ "z": "3bccaf6e46d3dbf5",
183
+ "name": "Pull",
184
+ "x": 430,
185
+ "y": 500,
186
+ "wires": [
187
+ [
188
+ "03ee0eeb510c4079"
189
+ ]
190
+ ]
191
+ },
192
+ {
193
+ "id": "b52694191622718c",
194
+ "type": "inject",
195
+ "z": "3bccaf6e46d3dbf5",
196
+ "name": "Trigger",
197
+ "props": [
198
+ {
199
+ "p": "payload"
200
+ }
201
+ ],
202
+ "repeat": "",
203
+ "crontab": "",
204
+ "once": false,
205
+ "onceDelay": 0.1,
206
+ "topic": "",
207
+ "payload": "{\"model\":\"llama2\",\"insecure\":false,\"stream\":false}",
208
+ "payloadType": "json",
209
+ "x": 270,
210
+ "y": 500,
211
+ "wires": [
212
+ [
213
+ "600b4633a7e30d56"
214
+ ]
215
+ ]
216
+ },
217
+ {
218
+ "id": "dab5ace115f3fa6c",
219
+ "type": "ollama-push",
220
+ "z": "3bccaf6e46d3dbf5",
221
+ "name": "Push",
222
+ "x": 430,
223
+ "y": 560,
224
+ "wires": [
225
+ [
226
+ "03ee0eeb510c4079"
227
+ ]
228
+ ]
229
+ },
230
+ {
231
+ "id": "a7cdb881e2383858",
232
+ "type": "inject",
233
+ "z": "3bccaf6e46d3dbf5",
234
+ "name": "Trigger",
235
+ "props": [
236
+ {
237
+ "p": "payload"
238
+ }
239
+ ],
240
+ "repeat": "",
241
+ "crontab": "",
242
+ "once": false,
243
+ "onceDelay": 0.1,
244
+ "topic": "",
245
+ "payload": "{\"model\":\"llama2\"}",
246
+ "payloadType": "json",
247
+ "x": 270,
248
+ "y": 560,
249
+ "wires": [
250
+ [
251
+ "dab5ace115f3fa6c"
252
+ ]
253
+ ]
254
+ },
255
+ {
256
+ "id": "66e2fb897f54a093",
257
+ "type": "ollama-embeddings",
258
+ "z": "3bccaf6e46d3dbf5",
259
+ "name": "Embeddings",
260
+ "x": 450,
261
+ "y": 320,
262
+ "wires": [
263
+ [
264
+ "03ee0eeb510c4079"
265
+ ]
266
+ ]
267
+ },
268
+ {
269
+ "id": "5dc331f9adb5c410",
270
+ "type": "inject",
271
+ "z": "3bccaf6e46d3dbf5",
272
+ "name": "Trigger",
273
+ "props": [
274
+ {
275
+ "p": "payload"
276
+ }
277
+ ],
278
+ "repeat": "",
279
+ "crontab": "",
280
+ "once": false,
281
+ "onceDelay": 0.1,
282
+ "topic": "",
283
+ "payload": "{\"model\":\"llama2\",\"prompt\":\"Why is the sky blue?\"}",
284
+ "payloadType": "json",
285
+ "x": 270,
286
+ "y": 320,
287
+ "wires": [
288
+ [
289
+ "66e2fb897f54a093"
290
+ ]
291
+ ]
292
+ },
293
+ {
294
+ "id": "65c862b6ceb04278",
295
+ "type": "inject",
296
+ "z": "3bccaf6e46d3dbf5",
297
+ "name": "Trigger",
298
+ "props": [
299
+ {
300
+ "p": "payload"
301
+ }
302
+ ],
303
+ "repeat": "",
304
+ "crontab": "",
305
+ "once": false,
306
+ "onceDelay": 0.1,
307
+ "topic": "",
308
+ "payload": "{\"model\":\"test\",\"modelfile\":\"FROM llama2\\nSYSTEM You are Iron Man\"}",
309
+ "payloadType": "json",
310
+ "x": 270,
311
+ "y": 200,
312
+ "wires": [
313
+ [
314
+ "3e94dcb40e8ec4ac"
315
+ ]
316
+ ]
317
+ },
318
+ {
319
+ "id": "3e94dcb40e8ec4ac",
320
+ "type": "ollama-create",
321
+ "z": "3bccaf6e46d3dbf5",
322
+ "name": "Create",
323
+ "x": 430,
324
+ "y": 200,
325
+ "wires": [
326
+ [
327
+ "03ee0eeb510c4079"
328
+ ]
329
+ ]
330
+ },
331
+ {
332
+ "id": "90e8f4d49463a350",
333
+ "type": "ollama-chat",
334
+ "z": "3bccaf6e46d3dbf5",
335
+ "name": "Chat",
336
+ "x": 430,
337
+ "y": 80,
338
+ "wires": [
339
+ [
340
+ "03ee0eeb510c4079"
341
+ ]
342
+ ]
343
+ },
344
+ {
345
+ "id": "c8825d8d240ac12d",
346
+ "type": "inject",
347
+ "z": "3bccaf6e46d3dbf5",
348
+ "name": "Trigger",
349
+ "props": [
350
+ {
351
+ "p": "payload"
352
+ }
353
+ ],
354
+ "repeat": "",
355
+ "crontab": "",
356
+ "once": false,
357
+ "onceDelay": 0.1,
358
+ "topic": "",
359
+ "payload": "{\"model\":\"test\",\"messages\":[{\"role\":\"user\",\"content\":\"What is your real name?\"}]}",
360
+ "payloadType": "json",
361
+ "x": 270,
362
+ "y": 80,
363
+ "wires": [
364
+ [
365
+ "90e8f4d49463a350"
366
+ ]
367
+ ]
368
+ },
369
+ {
370
+ "id": "c74ec4ac9b76d0f4",
371
+ "type": "ollama-generate",
372
+ "z": "3bccaf6e46d3dbf5",
373
+ "name": "Generate",
374
+ "x": 440,
375
+ "y": 380,
376
+ "wires": [
377
+ [
378
+ "03ee0eeb510c4079"
379
+ ]
380
+ ]
381
+ },
382
+ {
383
+ "id": "72f0e357f73844e0",
384
+ "type": "inject",
385
+ "z": "3bccaf6e46d3dbf5",
386
+ "name": "Trigger",
387
+ "props": [
388
+ {
389
+ "p": "payload"
390
+ }
391
+ ],
392
+ "repeat": "",
393
+ "crontab": "",
394
+ "once": false,
395
+ "onceDelay": 0.1,
396
+ "topic": "",
397
+ "payload": "{\"model\":\"test\",\"prompt\":\"What is your secret?\"}",
398
+ "payloadType": "json",
399
+ "x": 270,
400
+ "y": 380,
401
+ "wires": [
402
+ [
403
+ "c74ec4ac9b76d0f4"
404
+ ]
405
+ ]
406
+ }
407
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-ollama",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "A Node-RED module that wraps the ollama.js library, offering its functionalities as configurable nodes for easy integration into flows.",
5
5
  "keywords": [
6
6
  "ai",
@@ -15,10 +15,7 @@
15
15
  "test": "echo \"Error: no test specified\" && exit 1"
16
16
  },
17
17
  "node-red": {
18
- "version": ">=3.1.7",
19
- "engines": {
20
- "node": ">=14.0.0"
21
- },
18
+ "version": ">=3.0",
22
19
  "nodes": {
23
20
  "ollama-chat": "nodes/ollama-chat.js",
24
21
  "ollama-copy": "nodes/ollama-copy.js",
@@ -32,6 +29,9 @@
32
29
  "ollama-show": "nodes/ollama-show.js"
33
30
  }
34
31
  },
32
+ "engines": {
33
+ "node": ">=14.0.0"
34
+ },
35
35
  "dependencies": {
36
36
  "ollama": "^0.5.0"
37
37
  },