[PR #57] [MERGED] take all args as one prompt #15226

Closed
opened 2026-04-16 04:53:32 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/57
Author: @BruceMacD
Created: 7/7/2023
Status: Merged
Merged: 7/10/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/collect-args


📝 Commits (1)

  • 4d8b041 take all args as one prompt

📊 Changes

2 files changed (+11 additions, -12 deletions)

View changed files

📝 README.md (+8 -0)
📝 cmd/cmd.go (+3 -12)

📄 Description

  • parse all run arguments into one prompt
  • do not echo prompt back on one-shot
  • example of summarizing a document
$ ollama run nous-hermes "$(cat input.txt)", please summarize this story
The song "Summertime" by Will Smith is about the rapper's life before fame and how it changed when he became successful. The lyrics describe his experiences growing up in Philadelphia and then suddenly becoming rich and famous. The song is a coming-of-age story that describes the rapper's journey from poverty to stardom, and the impact of this change on his life.

🔄 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/57 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 7/7/2023 **Status:** ✅ Merged **Merged:** 7/10/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/collect-args` --- ### 📝 Commits (1) - [`4d8b041`](https://github.com/ollama/ollama/commit/4d8b0414f702eb4be62cf42cd5c9ef7fec7e3dee) take all args as one prompt ### 📊 Changes **2 files changed** (+11 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+8 -0) 📝 `cmd/cmd.go` (+3 -12) </details> ### 📄 Description - parse all run arguments into one prompt - do not echo prompt back on one-shot - example of summarizing a document ``` $ ollama run nous-hermes "$(cat input.txt)", please summarize this story The song "Summertime" by Will Smith is about the rapper's life before fame and how it changed when he became successful. The lyrics describe his experiences growing up in Philadelphia and then suddenly becoming rich and famous. The song is a coming-of-age story that describes the rapper's journey from poverty to stardom, and the impact of this change on his life. ``` --- <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-16 04:53:32 -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#15226