mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-05 00:10:27 -05:00
[PR #24307] [CLOSED] fix: merge filter tools with internal tools instead of replacing #131262
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/24307
Author: @aayushbaluni
Created: 5/2/2026
Status: ❌ Closed
Base:
dev← 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
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.Changelog Entry
Description
process_chat_payloadwas overwriting the existing internal tools array instead of merging them. This caused internal tools to be silently dropped when filters added provider-native tools (Fixes #24237).Added
Changed
process_chat_payloadinbackend/open_webui/utils/middleware.pyto merge provider-native tools from filters with existing internal tools rather than replacing them.Deprecated
Removed
Fixed
body["tools"]contains only provider-native entries, they are now copied toprovider_native_tool_addonsand the originaltoolskey is popped, allowing internal tool resolution to proceed normally.Security
Breaking Changes
Additional Information
process_chat_payloadperformed a direct assignment (body["tools"] = filter_tools) which replaced any existing internal tools. The fix merges them instead.Screenshots or Videos
Contributor License Agreement
Made with Cursor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.