mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #23932] [CLOSED] fix: strip client-provided tools for models without native tool calling #66300
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/23932
Author: @pvyswiss
Created: 4/21/2026
Status: ❌ Closed
Base:
main← Head:fix/strip-tools-non-native-models📝 Commits (1)
d0b5f2dfix: strip client-provided tools for models without native tool calling📊 Changes
1 file changed (+11 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+11 -0)📄 Description
Summary
Fixes #23924 (Ref: #23917 Bug 5)
toolsandtool_choicefromform_datawhen the model doesn't havefunction_calling: "native"null, crashing the SDK and killing concurrent streams🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.