[PR #23366] [CLOSED] fix: include built-in tools in Pipe functions #130833

Closed
opened 2026-05-21 15:31:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/23366
Author: @olivier-lacroix
Created: 4/3/2026
Status: ❌ Closed

Base: dev ← Head: fix/builtin-tools-in-pipes


📝 Commits (2)

  • 64e3a6b fix: include built-in tools in Pipe functions
  • 8afa9b3 Have user_tools override builtin_tools

📊 Changes

1 file changed (+15 additions, -3 deletions)

View changed files

📝 backend/open_webui/functions.py (+15 -3)

📄 Description

Pull Request Checklist

  • Target branch: Verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request down below.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Add docs in Open WebUI Docs Repository.
  • Dependencies: No new dependencies.
  • Testing: Verified that __tools__ now correctly contains built-in tools in Pipe functions.
  • Agentic AI Code: Confirm this Pull Request is not written by any AI Agent or has at least gone through additional human review AND manual testing.
  • Code review: Have you performed a self-review of your code?
  • Design & Architecture: Follows existing patterns for tool resolution.
  • Git Hygiene: Atomic change.
  • Title Prefix: fix.

Changelog Entry

Description

Previously, Pipe functions only received user-defined tools in their __tools__ parameter. This PR ensures that built-in tools (like web search, image generation, etc.) are also populated when enabled for the model.

Changed

  • Updated generate_function_chat_completion in backend/open_webui/functions.py to include built-in tools in the extra_params['__tools__'] passed to Pipe functions.

Fixed

  • Fixed missing built-in tools in the __tools__ parameter for Pipe functions.

Additional Information

Contributor License Agreement


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/23366 **Author:** [@olivier-lacroix](https://github.com/olivier-lacroix) **Created:** 4/3/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/builtin-tools-in-pipes` --- ### 📝 Commits (2) - [`64e3a6b`](https://github.com/open-webui/open-webui/commit/64e3a6bf2a04558a8bf3e378df9d35a51685c133) fix: include built-in tools in Pipe functions - [`8afa9b3`](https://github.com/open-webui/open-webui/commit/8afa9b3a4b0fdd2af4285e22cead1559a5bad492) Have user_tools override builtin_tools ### 📊 Changes **1 file changed** (+15 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/functions.py` (+15 -3) </details> ### 📄 Description # Pull Request Checklist - [x] **Target branch:** Verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request down below. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Add docs in [Open WebUI Docs Repository](https://github.com/open-webui/docs). - [ ] **Dependencies:** No new dependencies. - [ ] **Testing:** Verified that `__tools__` now correctly contains built-in tools in Pipe functions. - [ ] **Agentic AI Code:** Confirm this Pull Request is **not written by any AI Agent** or has at least **gone through additional human review AND manual testing**. - [x] **Code review:** Have you performed a self-review of your code? - [x] **Design & Architecture:** Follows existing patterns for tool resolution. - [x] **Git Hygiene:** Atomic change. - [x] **Title Prefix:** `fix`. # Changelog Entry ### Description Previously, Pipe functions only received user-defined tools in their `__tools__` parameter. This PR ensures that built-in tools (like web search, image generation, etc.) are also populated when enabled for the model. ### Changed - Updated `generate_function_chat_completion` in `backend/open_webui/functions.py` to include built-in tools in the `extra_params['__tools__']` passed to Pipe functions. ### Fixed - Fixed missing built-in tools in the `__tools__` parameter for Pipe functions. --- ### Additional Information - Fixes #23365 ### Contributor License Agreement - [x] By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-21 15:31:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#130833