[PR #1793] [MERGED] Refactor interactive mode and fix the show command #10680

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1793
Author: @pdevine
Created: 1/5/2024
Status: Merged
Merged: 1/5/2024
Merged by: @pdevine

Base: mainHead: showmodelfile


📝 Commits (2)

  • 6124632 split up interactive generation
  • 1ea7b85 add show info command and fix the modelfile

📊 Changes

4 files changed (+572 additions, -515 deletions)

View changed files

📝 api/types.go (+6 -1)
📝 cmd/cmd.go (+2 -502)
cmd/interactive.go (+532 -0)
📝 server/routes.go (+32 -12)

📄 Description

This change splits up the interactive generation part of the CLI into its own file, and also fixes some issues with the way the show command works.

There is a new /show info command in the REPL which can show details about the model, and also /show modelfile will combine any parameters set in the REPL so that it creates the correct modelfile.


🔄 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/1793 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 1/5/2024 **Status:** ✅ Merged **Merged:** 1/5/2024 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `showmodelfile` --- ### 📝 Commits (2) - [`6124632`](https://github.com/ollama/ollama/commit/61246321cc0096e8c215c057cb49df653fa78f8e) split up interactive generation - [`1ea7b85`](https://github.com/ollama/ollama/commit/1ea7b851ec0eaa90fb7be7ff62395eee30ab9b8d) add show info command and fix the modelfile ### 📊 Changes **4 files changed** (+572 additions, -515 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+6 -1) 📝 `cmd/cmd.go` (+2 -502) ➕ `cmd/interactive.go` (+532 -0) 📝 `server/routes.go` (+32 -12) </details> ### 📄 Description This change splits up the interactive generation part of the CLI into its own file, and also fixes some issues with the way the `show` command works. There is a new `/show info` command in the REPL which can show details about the model, and also `/show modelfile` will combine any parameters set in the REPL so that it creates the correct modelfile. --- <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:07:19 -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#10680