[PR #3134] feat: Override system prompt from non-interactive CLI #42324

Open
opened 2026-04-24 22:05:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3134
Author: @kaizau
Created: 3/14/2024
Status: 🔄 Open

Base: mainHead: main


📝 Commits (2)

  • 87c3e61 Override system prompt from non-interactive CLI
  • 3060abb Merge remote-tracking branch 'upstream/main'

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 cmd/cmd.go (+7 -0)

📄 Description

Previously, the only way to set the system prompt for non-interactive use was to import a new Modelfile.

This PR makes Ollama much easier to script non-interatively:

ollama run llama2 --system "Translate into French" "This is really useful!"

🔄 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/3134 **Author:** [@kaizau](https://github.com/kaizau) **Created:** 3/14/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`87c3e61`](https://github.com/ollama/ollama/commit/87c3e61a0aec67abffc322e5787df463a485ddb3) Override system prompt from non-interactive CLI - [`3060abb`](https://github.com/ollama/ollama/commit/3060abbdbd0f5986cf861e804f8b737e1651bf5f) Merge remote-tracking branch 'upstream/main' ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+7 -0) </details> ### 📄 Description - Closes #1415 Previously, the only way to set the system prompt for non-interactive use was to import a new Modelfile. This PR makes Ollama much easier to script non-interatively: ``` ollama run llama2 --system "Translate into French" "This is really useful!" ``` --- <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-24 22:05:57 -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#42324