[PR #541] [MERGED] Cmd changes #15481

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/541
Author: @pdevine
Created: 9/16/2023
Status: Merged
Merged: 9/18/2023
Merged by: @pdevine

Base: mainHead: cmd-changes


📝 Commits (3)

  • ce1f008 Load the model when starting the repl
  • 66dfcad Add placeholder text for the prompt line
  • c9345fa tighten up the terminal output

📊 Changes

2 files changed (+75 additions, -52 deletions)

View changed files

📝 cmd/cmd.go (+69 -50)
📝 server/routes.go (+6 -2)

📄 Description

This changes the API so that it can use POST /api/generate to pre-load a model if the prompt is empty. It also changes the REPL so that it can pre-load the model by making a call to generate automatically, and includes a change for using placeholder text.


🔄 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/541 **Author:** [@pdevine](https://github.com/pdevine) **Created:** 9/16/2023 **Status:** ✅ Merged **Merged:** 9/18/2023 **Merged by:** [@pdevine](https://github.com/pdevine) **Base:** `main` ← **Head:** `cmd-changes` --- ### 📝 Commits (3) - [`ce1f008`](https://github.com/ollama/ollama/commit/ce1f0089d87d3ffe41b2a279705dcc20f81cd57d) Load the model when starting the repl - [`66dfcad`](https://github.com/ollama/ollama/commit/66dfcad0ea0d965d65568ac5b1d69f3c7a6bfbd3) Add placeholder text for the prompt line - [`c9345fa`](https://github.com/ollama/ollama/commit/c9345fae7f068c8b9610fec9c40a770212f12a11) tighten up the terminal output ### 📊 Changes **2 files changed** (+75 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+69 -50) 📝 `server/routes.go` (+6 -2) </details> ### 📄 Description This changes the API so that it can use `POST /api/generate` to pre-load a model if the prompt is empty. It also changes the REPL so that it can pre-load the model by making a call to generate automatically, and includes a change for using placeholder text. --- <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 05:00:31 -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#15481