[GH-ISSUE #8798] tools: use PDA sampler to force tool output to be JSON for supported models #67769

Open
opened 2026-05-04 11:38:21 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ParthSareen on GitHub (Feb 3, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8798

Originally assigned to: @ParthSareen on GitHub.

https://github.com/ollama/ollama/issues/6002#issuecomment-2629847878

Originally created by @ParthSareen on GitHub (Feb 3, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8798 Originally assigned to: @ParthSareen on GitHub. https://github.com/ollama/ollama/issues/6002#issuecomment-2629847878
GiteaMirror added the feature request label 2026-05-04 11:38:21 -05:00
Author
Owner

@thot-experiment commented on GitHub (Apr 15, 2025):

+1 on this, spent a few hours debugging some stuff last night only to realize that tool calls aren't actually coerced into the schema on output and the model was just making things up, would be very useful to have

<!-- gh-comment-id:2806948514 --> @thot-experiment commented on GitHub (Apr 15, 2025): +1 on this, spent a few hours debugging some stuff last night only to realize that tool calls aren't actually coerced into the schema on output and the model was just making things up, would be very useful to have
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#67769