[PR #5802] [MERGED] preserve last assistant message #17197

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5802
Author: @jmorganca
Created: 7/20/2024
Status: Merged
Merged: 7/20/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/templates


📝 Commits (5)

📊 Changes

2 files changed (+22 additions, -1 deletions)

View changed files

📝 template/template.go (+2 -1)
📝 template/template_test.go (+20 -0)

📄 Description

Fixes https://github.com/ollama/ollama/issues/5775


🔄 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/5802 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 7/20/2024 **Status:** ✅ Merged **Merged:** 7/20/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/templates` --- ### 📝 Commits (5) - [`a3a4c79`](https://github.com/ollama/ollama/commit/a3a4c793f6330937fd74724082ac73a10604a505) preserve last assistant message - [`9c8eb75`](https://github.com/ollama/ollama/commit/9c8eb752fa9a7e0c0ca1a2e1b5176f8d513cd631) simplify - [`fb7c51d`](https://github.com/ollama/ollama/commit/fb7c51d45d69a9333db671697b935ac3d16668fe) simplify - [`9e40d5f`](https://github.com/ollama/ollama/commit/9e40d5f01664f52f10cb05ebadb4061417ab5656) revert unnecessary change - [`6384248`](https://github.com/ollama/ollama/commit/6384248bfa19c3693a32bffc1f1fcbc76c171330) revert unnecessary change ### 📊 Changes **2 files changed** (+22 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `template/template.go` (+2 -1) 📝 `template/template_test.go` (+20 -0) </details> ### 📄 Description Fixes https://github.com/ollama/ollama/issues/5775 --- <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:55:05 -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#17197