Hi,
Hi! Just in case you missed it, I think you might want to know that ollama has implemented tool support for LLMs.
With the recent advancement in the fields, it is now much easier than before to properly parse JSON files.
Here's their blog link: https://ollama.com/blog/tool-support
You can look for models that support tools here: https://ollama.com/library
Alternatively, ollama is planning to enhance constrained grammar support: ollama/ollama#6237 (comment)
I don't know exactly how you're parsing ollama output but it might become way easier thanks to this.