[PR #826] [MERGED] show: no template system if empty #10347

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/826
Author: @mxyng
Created: 10/17/2023
Status: Merged
Merged: 10/18/2023
Merged by: @mxyng

Base: mainHead: mxyng/template-system


📝 Commits (1)

  • ee4979e show: no template system if empty

📊 Changes

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

View changed files

📝 server/images.go (+3 -0)

📄 Description

This prevents show outputs like this:

ollama run mistral
>>> /show modelfile
# Modelfile generated by "ollama show"
# To build a new Modelfile based on this one, replace the FROM line with:
# FROM mistral:latest

FROM registry.ollama.ai/library/mistral:latest
TEMPLATE """[INST] {{ .Prompt }} [/INST]
"""
SYSTEM """"""

🔄 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/826 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 10/17/2023 **Status:** ✅ Merged **Merged:** 10/18/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/template-system` --- ### 📝 Commits (1) - [`ee4979e`](https://github.com/ollama/ollama/commit/ee4979e5102cd4af7fd86f154ea35b6f782684ff) show: no template system if empty ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+3 -0) </details> ### 📄 Description This prevents show outputs like this: ``` ollama run mistral >>> /show modelfile # Modelfile generated by "ollama show" # To build a new Modelfile based on this one, replace the FROM line with: # FROM mistral:latest FROM registry.ollama.ai/library/mistral:latest TEMPLATE """[INST] {{ .Prompt }} [/INST] """ SYSTEM """""" ``` --- <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 22:58: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#10347