[PR #1095] [MERGED] Add JSON mode to ollama run #10464

Closed
opened 2026-04-12 23:01:10 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1095
Author: @jmorganca
Created: 11/12/2023
Status: Merged
Merged: 11/14/2023
Merged by: @jmorganca

Base: mainHead: json-mode-cli


📝 Commits (1)

📊 Changes

1 file changed (+25 additions, -6 deletions)

View changed files

📝 cmd/cmd.go (+25 -6)

📄 Description

Allow using JSON mode from the ollama run command line

  • --format json: a new command line flag
  • /set format json: in the interactive ollama run terminal

🔄 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/1095 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 11/12/2023 **Status:** ✅ Merged **Merged:** 11/14/2023 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `json-mode-cli` --- ### 📝 Commits (1) - [`ec00c76`](https://github.com/ollama/ollama/commit/ec00c7670be01dc982b93415a423108739d41278) add json mode to cli ### 📊 Changes **1 file changed** (+25 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+25 -6) </details> ### 📄 Description Allow using JSON mode from the `ollama run` command line * `--format json`: a new command line flag * `/set format json`: in the interactive `ollama run` terminal --- <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-12 23:01:10 -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#10464