[PR #14672] server: remove duplicate template parse and debug print in create #25319

Open
opened 2026-04-19 18:08:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14672
Author: @majiayu000
Created: 3/6/2026
Status: 🔄 Open

Base: mainHead: fix/create-cleanup


📝 Commits (1)

  • 7c4f9f4 server: remove duplicate template parse and debug print in create

📊 Changes

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

View changed files

📝 server/create.go (+0 -4)

📄 Description

Summary

  • Remove duplicate template.Parse call in setTemplate (called twice on the same input)
  • Remove leftover fmt.Printf("removing old messages\n") debug statement in setMessages

Test plan

  • All existing TestCreate* tests pass without regression

🔄 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/14672 **Author:** [@majiayu000](https://github.com/majiayu000) **Created:** 3/6/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/create-cleanup` --- ### 📝 Commits (1) - [`7c4f9f4`](https://github.com/ollama/ollama/commit/7c4f9f47962adb401f7d4bd581edd0b55090728b) server: remove duplicate template parse and debug print in create ### 📊 Changes **1 file changed** (+0 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `server/create.go` (+0 -4) </details> ### 📄 Description ## Summary - Remove duplicate `template.Parse` call in `setTemplate` (called twice on the same input) - Remove leftover `fmt.Printf("removing old messages\n")` debug statement in `setMessages` ## Test plan - [x] All existing `TestCreate*` tests pass without regression --- <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-19 18:08:53 -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#25319