mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-20 14:14:26 -04:00
Thinking with Structured Output does not work #276
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @salbahra on GitHub (May 30, 2025).
Originally assigned to: @ParthSareen on GitHub.
Updated to the latest to use the new thinking mode along with structured outputs and ran into an error. I typically make the call using:
and process the output using:
This works still when
thinkis omitted however with it added and set to True, I get the following output:Notice the double opening curly brace and that thinking is None. Please let me know if I can provide any other details.
@sihyeong671 commented on GitHub (Jun 1, 2025):
I got same problem and I think we need to add test function with
thinkparameter!