[PR #12393] [MERGED] harmony: don't sanitize built-ins #76103

Closed
opened 2026-05-05 08:33:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12393
Author: @drifkin
Created: 9/24/2025
Status: Merged
Merged: 9/24/2025
Merged by: @drifkin

Base: mainHead: drifkin/fix-built-ins


📝 Commits (1)

  • fd88cd7 harmony: don't sanitize built-ins

📊 Changes

2 files changed (+5 additions, -0 deletions)

View changed files

📝 harmony/harmonyparser.go (+4 -0)
📝 harmony/harmonyparser_test.go (+1 -0)

📄 Description

In #11910 we started sanitizing function names, but we accidentally were modifying built-ins like browser.open to browser_open. This was removing the special prompt rendering for built-ins, but this wasn't immediately apparent since the models seem to be reasonably good at remembering the built-ins even when presented with these slightly renamed version. This fix prevents built-ins from ever being renamed.


🔄 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/12393 **Author:** [@drifkin](https://github.com/drifkin) **Created:** 9/24/2025 **Status:** ✅ Merged **Merged:** 9/24/2025 **Merged by:** [@drifkin](https://github.com/drifkin) **Base:** `main` ← **Head:** `drifkin/fix-built-ins` --- ### 📝 Commits (1) - [`fd88cd7`](https://github.com/ollama/ollama/commit/fd88cd7cb0966a26f41ec41bc012f2c4d725ab98) harmony: don't sanitize built-ins ### 📊 Changes **2 files changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `harmony/harmonyparser.go` (+4 -0) 📝 `harmony/harmonyparser_test.go` (+1 -0) </details> ### 📄 Description In #11910 we started sanitizing function names, but we accidentally were modifying built-ins like `browser.open` to `browser_open`. This was removing the special prompt rendering for built-ins, but this wasn't immediately apparent since the models seem to be reasonably good at remembering the built-ins even when presented with these slightly renamed version. This fix prevents built-ins from ever being renamed. --- <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:33:41 -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#76103