node-red-contrib-ollama 0.5.2 → 0.5.3

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
6
6
 
7
+ ## [0.5.3] - 2026-09-13
8
+
9
+ ### Fixed
10
+
11
+ - `msg.payload.tools` being ignored by the `ollama-chat` node ([#29](https://github.com/jakubburkiewicz/node-red-contrib-ollama/issues/29)) and the same operator-precedence bug affecting `msg.payload.options` in `ollama-chat`, `ollama-generate`, `ollama-embed` and `ollama-show`.
12
+
7
13
  ## [0.5.2] - 2026-09-13
8
14
 
9
15
  ### Fixed
@@ -99,10 +99,10 @@ module.exports = function( RED ) {
99
99
  }
100
100
 
101
101
  const toolsConfig = RED.nodes.getNode( config.tools )
102
- const tools = msg?.payload?.tools || ( toolsConfig ) ? JSON.parse( toolsConfig.json ) : null
102
+ const tools = msg?.payload?.tools || ( toolsConfig ? JSON.parse( toolsConfig.json ) : null )
103
103
 
104
104
  const optionsConfig = RED.nodes.getNode( config.options )
105
- const options = msg?.payload?.options || ( optionsConfig ) ? JSON.parse( optionsConfig.json ) : null
105
+ const options = msg?.payload?.options || ( optionsConfig ? JSON.parse( optionsConfig.json ) : null )
106
106
 
107
107
  ollama.chat( {
108
108
  model,
@@ -93,7 +93,7 @@ module.exports = function( RED ) {
93
93
  }
94
94
 
95
95
  const optionsConfig = RED.nodes.getNode( config.options )
96
- const options = msg?.payload?.options || ( optionsConfig ) ? JSON.parse( optionsConfig.json ) : null
96
+ const options = msg?.payload?.options || ( optionsConfig ? JSON.parse( optionsConfig.json ) : null )
97
97
 
98
98
  ollama.embed( {
99
99
  model,
@@ -167,7 +167,7 @@ module.exports = function( RED ) {
167
167
  }
168
168
 
169
169
  const optionsConfig = RED.nodes.getNode( config.options )
170
- const options = msg?.payload?.options || ( optionsConfig ) ? JSON.parse( optionsConfig.json ) : null
170
+ const options = msg?.payload?.options || ( optionsConfig ? JSON.parse( optionsConfig.json ) : null )
171
171
 
172
172
  ollama.generate( {
173
173
  model,
@@ -92,7 +92,7 @@ module.exports = function( RED ) {
92
92
  }
93
93
 
94
94
  const optionsConfig = RED.nodes.getNode( config.options )
95
- const options = msg?.payload?.options || ( optionsConfig ) ? JSON.parse( optionsConfig.json ) : null
95
+ const options = msg?.payload?.options || ( optionsConfig ? JSON.parse( optionsConfig.json ) : null )
96
96
 
97
97
  ollama.show( {
98
98
  model,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-ollama",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
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",