I am running latest version of N8N and paying around with LLM Chains. I tied out Ollama but I miss an option to define format=json so that Ollama only returns a single not nested JSON file.
Is there a way to do that or do you know if there are plans to add this feature?
Thanks for posting here and welcome to the community!
Could you be a bit more specific about the nodes you have been using and your n8n setup? You can also share your workflow here by pasting them as JSON in between two block quotes (```).
I have checked both Ollama Nodes and both have the option to return the output as JSON.
There is only an option in Basic LLM Chain where I connect it to specify an format but that is not the format-option for Ollama but so parse and repair invalid json.
What version is your screenshot from, maybe I have to downgrade?
Just upgraded to 1.46 to test. And it’s there…
Sorry but, did you try to scroll in the drop-down list that you’re getting? It’s at the very bottom…