[GH-ISSUE #1081] Support for additional formats such as yaml #534

Open
opened 2026-04-12 10:13:35 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @breitburg on GitHub (Nov 11, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1081

Good afternoon!

Recently, Ollama received an update that introduces JSON mode to the generate method. Although it works well, there is an issue: it is not possible to decode JSON during generation. Meanwhile, YAML is completely decodable while being generated. Therefore, I propose the addition of YAML mode as a response format.

Thank you for your work!

Originally created by @breitburg on GitHub (Nov 11, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1081 Good afternoon! Recently, Ollama received an update that introduces [JSON mode](https://github.com/jmorganca/ollama/blob/main/docs/api.md#json-mode) to the generate method. Although it works well, there is an issue: it is not possible to decode JSON during generation. Meanwhile, YAML is completely decodable while being generated. Therefore, I propose the addition of YAML mode as a response format. Thank you for your work!
GiteaMirror added the feature request label 2026-04-12 10:13:35 -05:00
Author
Owner

@jmorganca commented on GitHub (Nov 14, 2023):

Thanks for the issue! Will turn this into an "additional formats" issue we can use to track

<!-- gh-comment-id:1810340846 --> @jmorganca commented on GitHub (Nov 14, 2023): Thanks for the issue! Will turn this into an "additional formats" issue we can use to track
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#534