[PR #11013] [CLOSED] api: improve usability of ToolFunction struct #23954

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11013
Author: @calvinmclean
Created: 6/8/2025
Status: Closed

Base: mainHead: fix/7625/ToolFunction-embedded-property


📝 Commits (1)

  • 91f0e9e api: improve usability of ToolFunction struct

📊 Changes

3 files changed (+24 additions, -68 deletions)

View changed files

📝 api/types.go (+18 -14)
📝 openai/openai_test.go (+2 -18)
📝 server/routes_generate_test.go (+4 -36)

📄 Description

Resolves #7625

This change is already covered by existing JSON unmarshal tests.

This is a small breaking change to uses of the struct since users will have to replace re-definition of the embedded struct with the new ToolFunctionParameters and ToolFunctionProperty.


🔄 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/11013 **Author:** [@calvinmclean](https://github.com/calvinmclean) **Created:** 6/8/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/7625/ToolFunction-embedded-property` --- ### 📝 Commits (1) - [`91f0e9e`](https://github.com/ollama/ollama/commit/91f0e9e57138033cc8d8abd214409bfade61834a) api: improve usability of ToolFunction struct ### 📊 Changes **3 files changed** (+24 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `api/types.go` (+18 -14) 📝 `openai/openai_test.go` (+2 -18) 📝 `server/routes_generate_test.go` (+4 -36) </details> ### 📄 Description Resolves #7625 This change is already covered by existing JSON unmarshal tests. This is a small breaking change to uses of the struct since users will have to replace re-definition of the embedded struct with the new `ToolFunctionParameters` and `ToolFunctionProperty`. --- <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:18:17 -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#23954