[PR #1294] [MERGED] Allow setting parameters in the REPL #57236

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1294
Author: @pdevine
Created: 11/28/2023
Status: Merged
Merged: 11/29/2023
Merged by: @pdevine

Base: mainHead: params


📝 Commits (5)

  • fdbaeeb move formatParams to be useful in other places
  • 5deffa1 add /set parameters command to the REPL
  • e671563 add stop parameters to usage
  • 46790d0 fix non-interactive mode
  • b3fb306 change parameter online help

📊 Changes

3 files changed (+153 additions, -86 deletions)

View changed files

📝 api/types.go (+61 -0)
📝 cmd/cmd.go (+91 -26)
📝 server/images.go (+1 -60)

📄 Description

This change adds a new /set parameter command inside the repl so that you can change parameters without having to recreate a modelfile.

I have changed the /show parameters command to also reflect any parameters that have been set, however I haven't yet changed /show modelfile which should spit out a new modelfile which reflects the changes. That can come in a followup PR. Also not included in this PR are /set template and /set system which will come in a different PR.


🔄 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/1294 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 11/28/2023 **Status:** ✅ Merged **Merged:** 11/29/2023 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `params` --- ### 📝 Commits (5) - [`fdbaeeb`](https://github.com/ollama/ollama/commit/fdbaeeb084fe46f1ee313895c826a5c6a206b439) move formatParams to be useful in other places - [`5deffa1`](https://github.com/ollama/ollama/commit/5deffa1c6641d6b3e948a223e14596bdfcab92f7) add /set parameters command to the REPL - [`e671563`](https://github.com/ollama/ollama/commit/e67156382d041ad5db9e28697df2e90dd26a6f9e) add stop parameters to usage - [`46790d0`](https://github.com/ollama/ollama/commit/46790d0e60569d9a511e358aee46c04d66b2853f) fix non-interactive mode - [`b3fb306`](https://github.com/ollama/ollama/commit/b3fb30635ccba1abb03b02204a3ce43e237a74dc) change parameter online help ### 📊 Changes **3 files changed** (+153 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+61 -0) 📝 `cmd/cmd.go` (+91 -26) 📝 `server/images.go` (+1 -60) </details> ### 📄 Description This change adds a new `/set parameter` command inside the repl so that you can change parameters without having to recreate a modelfile. I have changed the `/show parameters` command to also reflect any parameters that have been set, however I haven't yet changed `/show modelfile` which should spit out a new modelfile which reflects the changes. That can come in a followup PR. Also not included in this PR are `/set template` and `/set system` which will come in a different PR. --- <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:49:24 -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#57236