mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23037] [CLOSED] fix: allow tool calls to continue generation for non-admin users #42617
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/23037
Author: @yang1002378395-cmyk
Created: 3/25/2026
Status: ❌ Closed
Base:
dev← Head:fix-tool-access-22851-v2📝 Commits (1)
687817bfix: allow tool calls to continue generation for non-admin users📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+2 -0)📄 Description
Pull Request Checklist
Changelog Entry
Description
When a tool call is executed by a non-admin user, the generation stops after the tool result is returned. Admin users are unaffected due to `BYPASS_ADMIN_ACCESS_CONTROL`.
Fixed
Root Cause
In `streaming_chat_response_handler`, when a tool call completes and the model needs to continue generating the response, the subsequent call to `generate_chat_completion` was missing the `bypass_filter=True` parameter. This caused the model access control check to fail for regular users.
Files Changed
Testing Evidence
User @TheoSlater in Issue #22851 confirmed this fix resolves the problem:
Related Issues
Fixes #22851
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.