[GH-ISSUE #11821] provide better feedback to the user when there's an invalid tool call #7845

Open
opened 2026-04-12 20:00:44 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @drifkin on GitHub (Aug 8, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11821

Originally assigned to: @drifkin on GitHub.

  • We should respect the <|constrain|> field for non-json cases
  • For JSON cases where it doesn't parse, we should provide the verbatim text to the user (perhaps in a different field, or perhaps as an error)
Originally created by @drifkin on GitHub (Aug 8, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11821 Originally assigned to: @drifkin on GitHub. - [ ] We should respect the `<|constrain|>` field for non-json cases - [x] For JSON cases where it doesn't parse, we should provide the verbatim text to the user (perhaps in a different field, or perhaps as an error)
GiteaMirror added the harmony label 2026-04-12 20:00:44 -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#7845