node-red-contrib-ollama 0.5.0 → 0.5.1

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,3 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: jakubburkiewicz
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
+
7
+ ## [0.5.1] - 2026-09-13
8
+
9
+ ### Fixed
10
+
11
+ - `ollama-abort` node crashing the Node-RED process due to incorrect handling of the synchronous `abort()` call.
@@ -42,10 +42,15 @@ module.exports = function( RED ) {
42
42
 
43
43
  const ollama = new Ollama( ollamaConfig )
44
44
 
45
- const response = await ollama.abort()
46
- .catch( error => {
47
- node.error( error )
48
- } )
45
+ // Unlike the other client methods, abort() is synchronous and
46
+ // returns nothing - it just cancels ongoing streamed requests.
47
+ let response = null
48
+ try {
49
+ ollama.abort()
50
+ response = { status: 'success' }
51
+ } catch ( error ) {
52
+ node.error( error )
53
+ }
49
54
 
50
55
  msg.payload = response
51
56
  node.send( msg )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-ollama",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Add AI functionality to your flows! This module includes a set of nodes that enable easy communication with Ollama, enriching your projects with intelligent solutions.",
5
5
  "keywords": [
6
6
  "ai",