[PR #7586] [MERGED] cmd: preserve exact bytes when displaying template/system layers #12462

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7586
Author: @bmizerany
Created: 11/9/2024
Status: Merged
Merged: 11/14/2024
Merged by: @bmizerany

Base: mainHead: bmizerany/fixshowtemplate


📝 Commits (1)

  • 44ee68e cmd: preserve exact bytes when displaying template/system layers

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 cmd/cmd.go (+2 -2)

📄 Description

Stop corrupting the output of template and system layers with extraneous newlines, which can alter model behavior if the output is used as input to a new model.


🔄 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/7586 **Author:** [@bmizerany](https://github.com/bmizerany) **Created:** 11/9/2024 **Status:** ✅ Merged **Merged:** 11/14/2024 **Merged by:** [@bmizerany](https://github.com/bmizerany) **Base:** `main` ← **Head:** `bmizerany/fixshowtemplate` --- ### 📝 Commits (1) - [`44ee68e`](https://github.com/ollama/ollama/commit/44ee68ec471e75d2fd3a79c87f5bd2613df3970b) cmd: preserve exact bytes when displaying template/system layers ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+2 -2) </details> ### 📄 Description Stop corrupting the output of template and system layers with extraneous newlines, which can alter model behavior if the output is used as input to a new model. --- <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:59:40 -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#12462