[PR #226] [MERGED] refactor scan multiline for reuse #15321

Closed
opened 2026-04-16 04:55:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/226
Author: @mxyng
Created: 7/27/2023
Status: Merged
Merged: 7/27/2023
Merged by: @mxyng

Base: mainHead: fix-modelfile-quotes


📝 Commits (1)

  • f5ac8dd refactor scan multiline for reuse

📊 Changes

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

View changed files

📝 parser/parser.go (+28 -7)

📄 Description

It's not obvious values are ingested verbatim when not using multiline so " are included in the template. Instead, ingest the value inside the quotes


🔄 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/226 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 7/27/2023 **Status:** ✅ Merged **Merged:** 7/27/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `fix-modelfile-quotes` --- ### 📝 Commits (1) - [`f5ac8dd`](https://github.com/ollama/ollama/commit/f5ac8ddfb46936442f9d25bba473591440d2a8ae) refactor scan multiline for reuse ### 📊 Changes **1 file changed** (+28 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `parser/parser.go` (+28 -7) </details> ### 📄 Description It's not obvious values are ingested verbatim when not using multiline so `"` are included in the template. Instead, ingest the value inside the quotes --- <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-16 04:55:41 -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#15321