mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 01:54:38 -05:00
[PR #17663] [CLOSED] fix:Improved default valves behavior #11310
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/17663
Author: @jmleksan
Created: 9/22/2025
Status: ❌ Closed
Base:
dev← Head:enh-improved-default-valves-behavior📝 Commits (10+)
fd58c59refac1e19c09refacffacd78feat: change default permission check for regenerate and delete actions9d81b52refac: forward cred to static pathsd32fd2cfeat: improve Chinese translatione27dfd1chore3aabba7fix: yt embed837669bChangelog dev (#18)82e87caUpdate CHANGELOG.mdfb10cb3Update CHANGELOG.md📊 Changes
339 files changed (+16275 additions, -6284 deletions)
View changed files
📝
.github/ISSUE_TEMPLATE/bug_report.yaml(+8 -5)📝
.github/dependabot.yml(+0 -6)📝
.github/pull_request_template.md(+1 -1)📝
.github/workflows/build-release.yml(+3 -3)📝
.github/workflows/deploy-to-hf-spaces.yml(+1 -1)📝
.github/workflows/docker-build.yaml(+166 -8)📝
.github/workflows/format-backend.yaml(+2 -2)📝
.github/workflows/format-build-frontend.yaml(+4 -4)📝
.github/workflows/release-pypi.yml(+3 -3)📝
CHANGELOG.md(+182 -0)📝
Dockerfile(+16 -3)➕
LICENSE_NOTICE(+11 -0)📝
README.md(+1 -1)📝
backend/dev.sh(+1 -1)📝
backend/open_webui/config.py(+100 -2)📝
backend/open_webui/env.py(+17 -0)📝
backend/open_webui/functions.py(+74 -46)📝
backend/open_webui/main.py(+55 -44)➕
backend/open_webui/migrations/versions/38d63c18f30f_add_oauth_session_table.py(+52 -0)📝
backend/open_webui/models/chats.py(+1 -1)...and 80 more files
📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR improves the default valves behavior in the Open WebUI interface. The changes address several issues with how valve values are handled, particularly around default values and array types.
Key improvements:
model_dump(exclude_unset=True)to only persist explicitly provided values, preventing unnecessary expansion of default valuesThe changes ensure that when users interact with the valves modal, the system correctly maintains the distinction between default values (which should not be persisted) and custom values (which should be saved), leading to cleaner data storage and more predictable behavior.
Fixed
Additional Information
This change improves the user experience by making the valves system more intuitive and reliable. The videos demonstrate the improved behavior where the modal now correctly shows "Default" vs "Custom" states and properly handles the transition between them.
The changes are backward compatible and don't affect existing functionality but provide a more robust foundation for valve management.
Screenshots or Videos
Contributor 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.