[PR #12016] [MERGED] harmony: move harmony parsing into a package #13686

Closed
opened 2026-04-13 00:32:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12016
Author: @ParthSareen
Created: 8/21/2025
Status: Merged
Merged: 8/21/2025
Merged by: @ParthSareen

Base: mainHead: parth/package-harmony


📝 Commits (1)

  • f2339a0 harmony: move harmony parsing into a package

📊 Changes

3 files changed (+32 additions, -32 deletions)

View changed files

📝 harmony/harmonyparser.go (+6 -19)
📝 harmony/harmonyparser_test.go (+1 -1)
📝 server/routes.go (+25 -12)

📄 Description

Moving harmony parsing into a package to extend using it from the runner instead and avoiding circular imports.

I maybe have some more thoughts on the exposed internals and interface but going to see how things shake out when integrating it with the runner.

Works towards fixing: #11691


🔄 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/12016 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 8/21/2025 **Status:** ✅ Merged **Merged:** 8/21/2025 **Merged by:** [@ParthSareen](https://github.com/ParthSareen) **Base:** `main` ← **Head:** `parth/package-harmony` --- ### 📝 Commits (1) - [`f2339a0`](https://github.com/ollama/ollama/commit/f2339a063e4a21604f0393dfe80395709877e8f6) harmony: move harmony parsing into a package ### 📊 Changes **3 files changed** (+32 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `harmony/harmonyparser.go` (+6 -19) 📝 `harmony/harmonyparser_test.go` (+1 -1) 📝 `server/routes.go` (+25 -12) </details> ### 📄 Description Moving harmony parsing into a package to extend using it from the runner instead and avoiding circular imports. I maybe have some more thoughts on the exposed internals and interface but going to see how things shake out when integrating it with the runner. Works towards fixing: #11691 --- <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-13 00:32:48 -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#13686