[PR #1051] [MERGED] JSON mode: add "format": "json" as an api parameter #57147

Closed
opened 2026-04-29 11:43:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1051
Author: @jmorganca
Created: 11/9/2023
Status: Merged
Merged: 11/10/2023
Merged by: @jmorganca

Base: mainHead: json-mode


📝 Commits (8)

📊 Changes

5 files changed (+97 additions, -9 deletions)

View changed files

📝 api/types.go (+1 -0)
📝 docs/api.md (+58 -6)
📝 llm/llama.go (+33 -1)
📝 llm/llm.go (+1 -1)
📝 server/routes.go (+4 -1)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1051 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 11/9/2023 **Status:** ✅ Merged **Merged:** 11/10/2023 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `json-mode` --- ### 📝 Commits (8) - [`994855e`](https://github.com/ollama/ollama/commit/994855e931475277a888b10fcfad297b71cfba71) add `"format": "json"` as an API parameter - [`185f01c`](https://github.com/ollama/ollama/commit/185f01cb88142874e0eea3c409bc14a932b275c3) add docs - [`74cdc0c`](https://github.com/ollama/ollama/commit/74cdc0cb4bc14483d66a3698d80b3168037118a6) Update docs/api.md - [`7bfe53a`](https://github.com/ollama/ollama/commit/7bfe53ada98801f5a7cbe78e57d47cb60b2992ea) Update docs/api.md - [`d269f27`](https://github.com/ollama/ollama/commit/d269f2721cf30729ba5e2de6a28af9003b7978a4) Update docs/api.md - [`0c0f7de`](https://github.com/ollama/ollama/commit/0c0f7dee35ffb149abf5d55e799b2ed72b6eb0d1) only objects and add api check - [`3d9e924`](https://github.com/ollama/ollama/commit/3d9e924df829ef0849e04625543ca2571f60ebef) Better API doc structure - [`bd0cb65`](https://github.com/ollama/ollama/commit/bd0cb65cb00d8f3dcfce1b572015412052eb3c20) link to example lower in the file ### 📊 Changes **5 files changed** (+97 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+1 -0) 📝 `docs/api.md` (+58 -6) 📝 `llm/llama.go` (+33 -1) 📝 `llm/llm.go` (+1 -1) 📝 `server/routes.go` (+4 -1) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 11:43:20 -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#57147