Ollama – v0.20.1-rc2: model/parsers: rework gemma4 tool call handling (#15306)
Ollama v0.20.1-rc2 is officially here, and itโs bringing some serious precision to how your local engine handles model interactions! ๐ ๏ธ
If you’ve been using Ollama to run LLMs like Llama 3, Mistral, or Gemma locally, you know it’s the backbone for building private AI applications. This latest release focuses heavily on refining the way specific models communicate with your system.
Whatโs new in this release:
- Gemma4 Tool Call Overhaul: The developers have completely reworked how Gemma4 handles tool calls. By replacing the old custom argument normalizer with a much stricter reference-style conversion, model interactions are now significantly more reliable.
- Improved Data Integrity: This update is a win for stability! It ensures that quoted strings remain strings, bare keys get properly quoted, and unquoted values maintain their correct types during the JSON unmarshalling process.
- Enhanced Error Handling: New test coverage has been added to catch malformed raw-quoted inputs. This ensures Ollama behaves exactly like the official reference implementation, reducing those pesky unexpected errors.
If you are currently experimenting with Gemma4 for agentic workflows or complex tool use, this update is a must-have to make your model interactions more predictable and robust! ๐
