Ollama Chat Model node has no way to disable streaming

Describe the feature

Add a Streaming option to the Ollama Chat Model node. Users can then turn streaming off.

Is your feature request related to a problem?

Yes. The node always sends stream: true to Ollama. Users cannot change this.

The behavior matters for some setups:

  • Log files are hard to read when the model writes in many small chunks.
  • Some proxies buffer a streamed response badly.
  • Users want one complete JSON response for downstream parsing.

Describe the solution you would like

Add a boolean Streaming option to the Ollama Chat Model node. It defaults to true. Existing workflows keep the current behavior.

When the option is off, the node sends stream: false to the Ollama chat endpoint. The response then arrives as one complete payload.

Technical note

The LangChain client version used by n8n stores a streaming field, but its streaming code path always sends stream: true. So the option needs a small wrapper in the n8n node. Tool calls and thinking output keep working, because the client still builds the final message.

Related

1 curtida