[PR #14961] [MERGED] parsers: robust xml tool repair #14941

Closed
opened 2026-04-13 01:06:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14961
Author: @BruceMacD
Created: 3/19/2026
Status: Merged
Merged: 3/19/2026
Merged by: @BruceMacD

Base: mainHead: brucemacd/glm-parser-xml-fix


📝 Commits (1)

  • cc721f2 parsers: robust xml tool repair

📊 Changes

2 files changed (+214 additions, -43 deletions)

View changed files

📝 model/parsers/glm46.go (+148 -29)
📝 model/parsers/glm46_test.go (+66 -14)

📄 Description

Previous xml repair for glm was a good start, but we need to go further and repair any incorrect open or closing tags


🔄 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/14961 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 3/19/2026 **Status:** ✅ Merged **Merged:** 3/19/2026 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/glm-parser-xml-fix` --- ### 📝 Commits (1) - [`cc721f2`](https://github.com/ollama/ollama/commit/cc721f25510745db05d1861b6f44a5221cd57895) parsers: robust xml tool repair ### 📊 Changes **2 files changed** (+214 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `model/parsers/glm46.go` (+148 -29) 📝 `model/parsers/glm46_test.go` (+66 -14) </details> ### 📄 Description Previous xml repair for glm was a good start, but we need to go further and repair any incorrect open or closing tags --- <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 01:06:20 -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#14941