[GH-ISSUE #8146] 'format = None' doesn't work on recent versions, is it an expected change? #5199

Closed
opened 2026-04-12 16:19:50 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @willianfco on GitHub (Dec 17, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/8146

What is the issue?

In recent versions (v0.5.2 and v0.5.3), setting format=None no longer works as it did before. Previously, this behavior was supported and functioned without errors. Now, it results in an HTTP 500 error.

When I downgrade to version v0.5.1 or earlier, the same behavior works as expected. To achieve similar output on the newer versions, I had to update all scripts to pass format as an empty string (format="").

Additional Context/Doubts:

  • Is this behavior change planned?

  • I noticed some recent fixes related to the format parameter to support Structured Outputs. Could this be the cause?

  • If this is intentional, it would be helpful to have it documented or to clarify the expected behavior moving forward.

Let me know if you need any further details or logs to help diagnose the issue.

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

v0.5.3

Originally created by @willianfco on GitHub (Dec 17, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/8146 ### What is the issue? In recent versions (v0.5.2 and v0.5.3), setting format=None no longer works as it did before. Previously, this behavior was supported and functioned without errors. Now, it results in an HTTP 500 error. When I downgrade to version v0.5.1 or earlier, the same behavior works as expected. To achieve similar output on the newer versions, I had to update all scripts to pass format as an empty string (format=""). Additional Context/Doubts: - Is this behavior change planned? - I noticed some recent fixes related to the format parameter to support Structured Outputs. Could this be the cause? - If this is intentional, it would be helpful to have it documented or to clarify the expected behavior moving forward. Let me know if you need any further details or logs to help diagnose the issue. ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version v0.5.3
GiteaMirror added the bug label 2026-04-12 16:19:50 -05:00
Author
Owner

@jmorganca commented on GitHub (Dec 17, 2024):

Hi there, this was fixed in https://github.com/ollama/ollama/pull/8139 and will be released in 0.5.4 today. Thanks for the issue!

<!-- gh-comment-id:2549817792 --> @jmorganca commented on GitHub (Dec 17, 2024): Hi there, this was fixed in https://github.com/ollama/ollama/pull/8139 and will be released in 0.5.4 today. Thanks for the issue!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5199