[GH-ISSUE #1243] Set system prompt in ollama run #47146

Closed
opened 2026-04-28 03:22:48 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @iplayfast on GitHub (Nov 22, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1243

Originally assigned to: @pdevine on GitHub.

We can see the system prompt with /show system, but have no way to set it. I would be nice to be able to set it from the command line.

Originally created by @iplayfast on GitHub (Nov 22, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1243 Originally assigned to: @pdevine on GitHub. We can see the system prompt with /show system, but have no way to set it. I would be nice to be able to set it from the command line.
GiteaMirror added the good first issuefeature request labels 2026-04-28 03:22:48 -05:00
Author
Owner

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

Thanks for creating an issue. @pdevine is the mastermind behind much of the ollama run experience, but I would presume we'll most likely want /set system "<system>"

<!-- gh-comment-id:1823336819 --> @jmorganca commented on GitHub (Nov 22, 2023): Thanks for creating an issue. @pdevine is the mastermind behind much of the `ollama run` experience, but I would presume we'll most likely want `/set system "<system>"`
Author
Owner

@pdevine commented on GitHub (Nov 22, 2023):

Great suggestion! I actually had this working, but had forgotten to send out a PR. I'll see if I can find the code again.

<!-- gh-comment-id:1823410581 --> @pdevine commented on GitHub (Nov 22, 2023): Great suggestion! I actually had this working, but had forgotten to send out a PR. I'll see if I can find the code again.
Author
Owner

@iplayfast commented on GitHub (Nov 23, 2023):

Glad it's in the queue. (waiting patiently)

<!-- gh-comment-id:1824439640 --> @iplayfast commented on GitHub (Nov 23, 2023): Glad it's in the queue. (waiting patiently)
Author
Owner

@technovangelist commented on GitHub (Dec 4, 2023):

This is now supported in ollama. I will go ahead and close this issue now. If you think there is anything we left out, reopen and we can address. Thanks for being part of this great community.

<!-- gh-comment-id:1839512808 --> @technovangelist commented on GitHub (Dec 4, 2023): This is now supported in ollama. I will go ahead and close this issue now. If you think there is anything we left out, reopen and we can address. Thanks for being part of this great community.
Author
Owner

@iplayfast commented on GitHub (Dec 7, 2023):

Thanks, I'm using it!

<!-- gh-comment-id:1844488285 --> @iplayfast commented on GitHub (Dec 7, 2023): Thanks, I'm using it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47146