mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #21115] [MERGED] enh: tool call prompt #129592
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
dev← Head:patch-6📝 Commits (1)
64d45b0Update builtin.py📊 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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.