mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-21 09:01:47 -05:00
[PR #17430] [CLOSED] refactor: initialize config/ package (1/4) #24427
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/17430
Author: @luxass
Created: 9/14/2025
Status: ❌ Closed
Base:
dev← Head:refactor/move-to-config-module📝 Commits (5)
5ee3521refactor: move config.py into config/ package structure5efefcbMerge branch 'dev' into refactor/move-to-config-module8b67a4aMerge branch 'dev' into refactor/move-to-config-module5d1ae32chore: format44a40c9Merge branch 'dev' into refactor/move-to-config-module📊 Changes
3 files changed (+7 additions, -1 deletions)
View changed files
➕
backend/open_webui/config/__init__.py(+1 -0)📝
backend/open_webui/config/legacy.py(+1 -0)📝
backend/open_webui/utils/oauth.py(+5 -1)📄 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:
devbranch.Changelog Entry
Description
Move the existing ~3k-line
config.pyfile into a newconfig/package structure without breaking any existing functionality. This is part 1 of 4 in a staged refactor to modularize the config.py file for better maintainability and organization. All existing imports continue to work unchanged through re-exports in the new package structure.Added
backend/open_webui/config/package directory structurebackend/open_webui/config/__init__.pywith complete re-exports for backward compatibilitybackend/open_webui/config/legacy.pycontaining the original config.py contentChanged
config.pycontent toconfig/legacy.pywithin the new package structureDeprecated
Removed
backend/open_webui/config.pyfile (functionality preserved through package re-exports)Fixed
Security
Breaking Changes
from open_webui.config import Ximports continue to work unchangedAdditional Information
legacy.pyinto logical modulesScreenshots 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.