[PR #5717] [MERGED] server: omit model system prompt if empty #37773

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

📋 Pull Request Information

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

Base: mainHead: jmorganca/omit-system


📝 Commits (1)

  • a6d8c56 server: omit model system prompt if empty

📊 Changes

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

View changed files

📝 server/routes.go (+1 -1)

📄 Description

The model's system prompt (defined by the SYSTEM Modelfile command) will be templated out even if empty currently. This fixes the issue so that it is only templated if not empty.


🔄 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/5717 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 7/16/2024 **Status:** ✅ Merged **Merged:** 7/16/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/omit-system` --- ### 📝 Commits (1) - [`a6d8c56`](https://github.com/ollama/ollama/commit/a6d8c560f7d5a86eb3ea6cd195fe83c35e9ccfc7) server: omit model system prompt if empty ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+1 -1) </details> ### 📄 Description The model's system prompt (defined by the `SYSTEM` Modelfile command) will be templated out even if empty currently. This fixes the issue so that it is only templated if not empty. --- <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 22:26: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#37773