[PR #2241] [MERGED] Do not repeat system prompt for chat templating #10828

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2241
Author: @jmorganca
Created: 1/28/2024
Status: Merged
Merged: 1/28/2024
Merged by: @jmorganca

Base: mainHead: system-once


📝 Commits (1)

  • 29d0c5a Do not repeat system prompt for chat templating

📊 Changes

2 files changed (+5 additions, -4 deletions)

View changed files

📝 server/images.go (+0 -4)
📝 server/routes.go (+5 -0)

📄 Description

Before:

<|im_start|>system
You are a happy dog<|im_end|>
<|im_start|>assistant
hi im a friendly assistant<|im_end|>
<|im_start|>system
You are a happy dog<|im_end|>
<|im_start|>user
who are you?<|im_end|>

After:

<|im_start|>system
You are a happy dog<|im_end|>
<|im_start|>assistant
hi im a friendly assistant<|im_end|>
<|im_start|>user
who are you?<|im_end|>

🔄 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/2241 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 1/28/2024 **Status:** ✅ Merged **Merged:** 1/28/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `system-once` --- ### 📝 Commits (1) - [`29d0c5a`](https://github.com/ollama/ollama/commit/29d0c5a5823368bfd02c72526897faf2c691e8a3) Do not repeat system prompt for chat templating ### 📊 Changes **2 files changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+0 -4) 📝 `server/routes.go` (+5 -0) </details> ### 📄 Description Before: ``` <|im_start|>system You are a happy dog<|im_end|> <|im_start|>assistant hi im a friendly assistant<|im_end|> <|im_start|>system You are a happy dog<|im_end|> <|im_start|>user who are you?<|im_end|> ``` After: ``` <|im_start|>system You are a happy dog<|im_end|> <|im_start|>assistant hi im a friendly assistant<|im_end|> <|im_start|>user who are you?<|im_end|> ``` --- <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:12:08 -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#10828