Files
open-webui/backend/open_webui/utils
Classic298 507b8b213c refac: mirror native FC code_interpreter authz gates onto legacy XML-tag path (#24724)
The native function-calling tool resolver in utils/tools.py applies five
gates before exposing execute_code as a builtin tool: builtin-category
enable, ENABLE_CODE_INTERPRETER global config, model capability,
features.code_interpreter request flag, and the per-user
features.code_interpreter permission.

The legacy XML-tag detection path in streaming_chat_response_handler
applied only the request-flag gate. Brings the legacy path to parity by
running the same five-gate check before activating tag detection.
Behaviour change is limited to deployments that previously relied on
the asymmetry — admins who set ENABLE_CODE_INTERPRETER=False or revoked
the per-user permission, on the legacy tool-calling mode, with the
client supplying features.code_interpreter=true. Any of those three
conditions met now correctly disables tag detection.

Co-authored-by: sfwani <sfwani@users.noreply.github.com>
2026-06-01 12:07:15 -07:00
..
2026-04-19 19:15:05 +09:00
2026-03-17 17:58:01 -05:00
2026-05-19 20:33:46 +04:00
2026-05-19 21:35:04 +04:00
2026-05-28 16:33:48 -05:00
2026-05-19 22:25:39 +04:00
2026-06-01 10:16:01 -07:00
2026-03-17 17:58:01 -05:00