mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #16423] enh: Functions/Tools & Valves additional gimmicks #62982
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/16423
Author: @Rain6435
Created: 8/9/2025
Status: 🔄 Open
Base:
dev← Head:feature/issue-5486-valves-enhancements📝 Commits (3)
4fb7402feat: implement all valve enhancements from issue #5486ca101b5fix: format code with Black and Prettier for CI compliance34e7ef1Merge branch 'dev' into feature/issue-5486-valves-enhancements📊 Changes
8 files changed (+591 additions, -52 deletions)
View changed files
📝
backend/open_webui/routers/functions.py(+57 -0)📝
backend/open_webui/routers/tools.py(+39 -0)➕
backend/open_webui/utils/function_logging.py(+83 -0)📝
backend/open_webui/utils/models.py(+10 -0)📝
backend/open_webui/utils/plugin.py(+28 -0)➕
backend/open_webui/utils/valve_helpers.py(+91 -0)📝
src/lib/components/common/Valves.svelte(+184 -20)📝
src/lib/components/workspace/common/ValvesModal.svelte(+99 -32)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
Target branch: Please verify that the pull request targets the
devbranch.Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Have you written and run sufficient tests to validate the changes?
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
Changelog Entry
Description
This PR implements all 10 valve enhancements requested in issue #5486, significantly expanding the valve system for Functions and Tools with new input types, callbacks, logging, and user experience improvements.
Added
on_valves_updatedcallback support for Functions/Tools (similar to pipelines)icon_url_darksupport for Actions to enable proper light/dark theme compatibilityget_valve_spec()methodsFixed
Additional Information
Fixes #5486
Test Plan
on_valves_updatedcallback is triggered on valve changesContributor 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.