[PR #1038] [CLOSED] Response preamble for interactive terminal #36319

Closed
opened 2026-04-22 20:59:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1038
Author: @eyelight
Created: 11/8/2023
Status: Closed

Base: mainHead: responsePreamble


📝 Commits (2)

  • 062ec43 Use active model name as reply preamble during interactive shell
  • 13ccfad Merge branch 'jmorganca:main' into responsePreamble

📊 Changes

2 files changed (+21 additions, -0 deletions)

View changed files

📝 cmd/cmd.go (+12 -0)
📝 readline/readline.go (+9 -0)

📄 Description

This PR updates the interactive terminal experience to:

  • print the active model just above the model's output
  • provide /set preamble and /set nopreamble to turn this behavior on & off
  • in both cases, adds an extra line to separate prompt & response

preamble


🔄 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/1038 **Author:** [@eyelight](https://github.com/eyelight) **Created:** 11/8/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `responsePreamble` --- ### 📝 Commits (2) - [`062ec43`](https://github.com/ollama/ollama/commit/062ec430a8d28e4f18211e00fbafbe0e8fe29aee) Use active model name as reply preamble during interactive shell - [`13ccfad`](https://github.com/ollama/ollama/commit/13ccfad3dd8a41fe66b9d01ecd6fb17020c6f012) Merge branch 'jmorganca:main' into responsePreamble ### 📊 Changes **2 files changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+12 -0) 📝 `readline/readline.go` (+9 -0) </details> ### 📄 Description This PR updates the interactive terminal experience to: - print the active model just above the model's output - provide `/set preamble` and `/set nopreamble` to turn this behavior on & off - in both cases, adds an extra line to separate prompt & response ![preamble](https://github.com/jmorganca/ollama/assets/225149/ddaab762-4a9f-4f1d-9a2c-45d26d18f8f1) --- <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-22 20:59:54 -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#36319