[PR #11456] [MERGED] tools: fix issue with tools that are substrings of others #75839

Closed
opened 2026-05-05 08:16:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11456
Author: @jmorganca
Created: 7/17/2025
Status: Merged
Merged: 7/20/2025
Merged by: @jmorganca

Base: mainHead: jmorganca/partial-tool-fix


📝 Commits (1)

  • c3e9a4e tools: fix issue with tools that are substrings of others

📊 Changes

2 files changed (+310 additions, -17 deletions)

View changed files

📝 tools/tools.go (+68 -17)
📝 tools/tools_test.go (+242 -0)

📄 Description

Builds on https://github.com/ollama/ollama/pull/11386

@rick-github sorry to open a different PR – there were a few tricky streaming use cases I handled building on your PR. I've added you as a co-author


🔄 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/11456 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 7/17/2025 **Status:** ✅ Merged **Merged:** 7/20/2025 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/partial-tool-fix` --- ### 📝 Commits (1) - [`c3e9a4e`](https://github.com/ollama/ollama/commit/c3e9a4e429405e44b4394f5aead279bdb30d6c36) tools: fix issue with tools that are substrings of others ### 📊 Changes **2 files changed** (+310 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `tools/tools.go` (+68 -17) 📝 `tools/tools_test.go` (+242 -0) </details> ### 📄 Description Builds on https://github.com/ollama/ollama/pull/11386 @rick-github sorry to open a different PR – there were a few tricky streaming use cases I handled building on your PR. I've added you as a co-author --- <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-05-05 08:16:09 -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#75839