mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 00:10:27 -05:00
[PR #24306] [CLOSED] fix: merge filter tools with internal tools instead of replacing #114905
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/24306
Author: @aayushbaluni
Created: 5/2/2026
Status: ❌ Closed
Base:
main← Head:fix/24237-merge-filter-tools📝 Commits (1)
ea9552cfix: merge filter tools with internal tools instead of replacing📊 Changes
1 file changed (+23 additions, -6 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+23 -6)📄 Description
Description
Fix: merge filter tools with internal tools instead of replacing
Fixes #24237
When a filter function returns provider-native tools,
process_chat_payloadwas overwriting the existing internal tools array instead of merging them. This caused internal tools to be silently dropped.Changes:
process_chat_payloadto merge provider-native tools from filters with existing internal toolsbody["tools"]contains only provider-native entries, they are copied toprovider_native_tool_addonsandtoolsis popped, allowing resolution to proceed normallyTesting:
Contributor License Agreement
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT License and I have the authority to grant these rights.
Made with Cursor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.