[PR #11509] tools: loosen tool argument parsing #13561

Closed
opened 2026-04-13 00:30:11 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11509

State: closed
Merged: Yes


This PR loosens tool call parsing in two ways:

  1. Allows for arguments ahead of function names
  2. No longer checks required fields, leaving it up to the caller

It tightens parsing in one way: tool calls without arguments such as {"name": "say_hello"} will no longer be parsed. This should be a non use case

Fixes https://github.com/ollama/ollama/issues/11505

**Original Pull Request:** https://github.com/ollama/ollama/pull/11509 **State:** closed **Merged:** Yes --- This PR loosens tool call parsing in two ways: 1. Allows for arguments ahead of function names 2. No longer checks required fields, leaving it up to the caller It tightens parsing in one way: tool calls without arguments such as `{"name": "say_hello"}` will no longer be parsed. This should be a non use case Fixes https://github.com/ollama/ollama/issues/11505
GiteaMirror added the pull-request label 2026-04-13 00:30:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13561