Add API option "think" in Ollama nodes (to disable/enable thinking mode in the API call)

It would help if there was support for think API option in existing Ollama nodes:

My use case:

The Ollama nodes should accept the API option “think”: false|true to allow the choice to disable thinking mode completely in ollama models that support it. The API sopport’s it natively and it’s recommended to use over /no_think (which does not work in recent versions of ollama any more, seemingly)

Any resources to support this?

Are you willing to work on this?

I would be willing to test it. I tried to look at the node definition code, but I am not sure if it’s enough to add the option definition to the description.ts. But I guess it might be only a very small effort for someone who knows what to do :wink:

Hello,

I second on this. As the Ollama API supports this since May 2025 it would be great to have it in N8N as well. For us it really would speed up the AI process. as our Ollama-compatible provider has thinking switched on if it is not specified and this makes the answers a lot slower.

I also guess it would only be a small number of additional code lines and very easy to create as a) it already is available for the OpenAI nodes and b) there are already similar options in the Ollama node as well.

Thanks!

1 Like

Either this or give us some useable Langchain code node JS that can correctly handle the model use correctly.

1 Like