Ollama – v0.20.3-rc0: model/parsers: add gemma4 tool call repair (#15374)

Ollama – v0.20.3-rc0: model/parsers: add gemma4 tool call repair (#15374)

Ollama v0.20.3-rc0 is officially live! 🚀

If you are running local LLMs, you know that “agentic” workflows depend entirely on how well a model can call tools and functions. Even a tiny syntax error from the model can crash your entire pipeline. This release is a massive quality-of-life update specifically designed to bridge that gap.

What’s new in this release:

  • Gemma 4 Tool Call Repair: Instead of letting a malformed tool call break your code, Ollama now features a “repair” layer. It uses a candidate pipeline to catch and fix syntax mistakes on the fly.
  • Smart Error Correction: The repair logic is fine-tuned to handle common model hiccups, such as:
  • Missing Gemma string delimiters.
  • Single-quoted string values or dangling delimiters.
  • Raw terminal strings that need proper formatting per the tool schema.
  • Missing object closing braces.
  • Enhanced Stability: This update includes new regression coverage and unit tests to ensure these repair helpers work reliably across various scenarios, preventing old bugs from resurfacing.

This is a huge win for anyone building autonomous agents or using Gemma 4 for function calling—it makes your local development much more robust and less prone to frustrating crashes! 🛠️

🔗 View Release