mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-28 17:59:25 -05:00
[PR #20708] [CLOSED] fix: native function calling improvements for knowledge queries #129397
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20708
Author: @Classic298
Created: 1/15/2026
Status: ❌ Closed
Base:
dev← Head:fix-task-model-native-tools📝 Commits (1)
db3bb1cUpdate middleware.py📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+1 -0)📄 Description
fix: native function calling improvements
Description
When native function calling was enabled, builtin tools were incorrectly injected into internal task model requests (title generation, follow-up generation, tags, etc.). This caused the task model to attempt tool calls with missing parameters, resulting in "missing required argument: query" errors.
Added a check to skip builtin tool injection when the request has a task type set in metadata.
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.