[PR #11294] [MERGED] template: add tool result compatibility #24040

Closed
opened 2026-04-19 17:20:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11294
Author: @ParthSareen
Created: 7/4/2025
Status: Merged
Merged: 7/7/2025
Merged by: @ParthSareen

Base: mainHead: parth/tool-referencing-api


📝 Commits (3)

  • 048c64a template: add tool result compatibility
  • 51a8647 add api.md, tool_call_id
  • e0865db remove tool_call_id

📊 Changes

4 files changed (+348 additions, -8 deletions)

View changed files

📝 api/types.go (+1 -0)
📝 docs/api.md (+240 -1)
📝 template/template.go (+9 -7)
📝 template/template_test.go (+98 -0)

📄 Description

To allow for better templating with tool use models - template changes incoming


🔄 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/11294 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 7/4/2025 **Status:** ✅ Merged **Merged:** 7/7/2025 **Merged by:** [@ParthSareen](https://github.com/ParthSareen) **Base:** `main` ← **Head:** `parth/tool-referencing-api` --- ### 📝 Commits (3) - [`048c64a`](https://github.com/ollama/ollama/commit/048c64a7d5ed311872d3008194b2a8e9181facda) template: add tool result compatibility - [`51a8647`](https://github.com/ollama/ollama/commit/51a86470365b204e1c70002b77c3dd661b1d87e6) add api.md, tool_call_id - [`e0865db`](https://github.com/ollama/ollama/commit/e0865db505012b81dc6abec598ae372bd6a8b606) remove tool_call_id ### 📊 Changes **4 files changed** (+348 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+1 -0) 📝 `docs/api.md` (+240 -1) 📝 `template/template.go` (+9 -7) 📝 `template/template_test.go` (+98 -0) </details> ### 📄 Description To allow for better templating with tool use models - template changes incoming --- <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-19 17:20:51 -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#24040