[PR #21115] [MERGED] enh: tool call prompt #25935

Closed
opened 2026-04-20 06:13:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/21115
Author: @Classic298
Created: 2/3/2026
Status: Merged
Merged: 2/5/2026
Merged by: @tjbck

Base: devHead: patch-6


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -2 deletions)

View changed files

📝 backend/open_webui/tools/builtin.py (+1 -2)

📄 Description

I know that this line "Use this before web search" is there deliberately, but this is undesired behaviour in many cases.
Models will use the query_knowledge_files again and again without results, wasting time and token - just to then output "yeah i found nothing". Yeah of course you found nothing - search the web!

I know this PR will probably be closed, but then we would need a way to customize the tool descriptions just like we can customize the tool descriptions for all other custom tools and other prompts sent to task models for example - because many models will indeed follow this behaviour and call the query_knowledge_files all the time instead of using search_web because of this tool description.

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.


🔄 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/open-webui/open-webui/pull/21115 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 2/3/2026 **Status:** ✅ Merged **Merged:** 2/5/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `patch-6` --- ### 📝 Commits (1) - [`64d45b0`](https://github.com/open-webui/open-webui/commit/64d45b0c22c1c44298bc32ee7c1e9e9144eeb404) Update builtin.py ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/tools/builtin.py` (+1 -2) </details> ### 📄 Description I know that this line "Use this before web search" is there deliberately, but this is undesired behaviour in many cases. Models will use the query_knowledge_files again and again without results, wasting time and token - just to then output "yeah i found nothing". Yeah of course you found nothing - search the web! I know this PR will probably be closed, but then we would need a way to customize the tool descriptions just like we can customize the tool descriptions for all other custom tools and other prompts sent to task models for example - because many models will indeed follow this behaviour and call the query_knowledge_files all the time instead of using search_web because of this tool description. ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. > [!NOTE] > Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in. --- <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-20 06:13:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#25935