[PR #1393] [MERGED] fix: trim space in modelfile fields #57267

Closed
opened 2026-04-29 11:50:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1393
Author: @mxyng
Created: 12/5/2023
Status: Merged
Merged: 12/5/2023
Merged by: @mxyng

Base: mainHead: mxyng/fix-whitespace


📝 Commits (1)

  • 38fe1a3 fix: trim space in modelfile fields

📊 Changes

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

View changed files

📝 parser/parser.go (+6 -3)

📄 Description

only trim whitespace for FROM, ADAPTER, and PARAMETER since whitespace in LICENSE, TEMPLATE, SYSTEM might be significant

resolves #1390


🔄 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/1393 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 12/5/2023 **Status:** ✅ Merged **Merged:** 12/5/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/fix-whitespace` --- ### 📝 Commits (1) - [`38fe1a3`](https://github.com/ollama/ollama/commit/38fe1a368bc96b127c02ca40634282a75ada58b2) fix: trim space in modelfile fields ### 📊 Changes **1 file changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `parser/parser.go` (+6 -3) </details> ### 📄 Description only trim whitespace for FROM, ADAPTER, and PARAMETER since whitespace in LICENSE, TEMPLATE, SYSTEM might be significant resolves #1390 --- <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-29 11:50:59 -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#57267