[PR #12039] [MERGED] tools: avoid matching braces that are part of tool content #39567

Closed
opened 2026-04-23 00:29:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12039
Author: @jmorganca
Created: 8/22/2025
Status: Merged
Merged: 8/22/2025
Merged by: @jmorganca

Base: mainHead: jmorganca/tools-braces


📝 Commits (1)

  • a01ae70 tools: avoid matching braces that are part of tool content

📊 Changes

2 files changed (+184 additions, -4 deletions)

View changed files

📝 tools/tools.go (+30 -3)
📝 tools/tools_test.go (+154 -1)

📄 Description

Fixes https://github.com/ollama/ollama/issues/12017


🔄 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/12039 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 8/22/2025 **Status:** ✅ Merged **Merged:** 8/22/2025 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/tools-braces` --- ### 📝 Commits (1) - [`a01ae70`](https://github.com/ollama/ollama/commit/a01ae70c4442aa24cfd0a76dcca0a6919b5337e1) tools: avoid matching braces that are part of tool content ### 📊 Changes **2 files changed** (+184 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tools/tools.go` (+30 -3) 📝 `tools/tools_test.go` (+154 -1) </details> ### 📄 Description Fixes https://github.com/ollama/ollama/issues/12017 --- <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-23 00:29:07 -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#39567