mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #8580] [MERGED] Split the storage providers into separate classes in preparation for adding more cloud providers #9048
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/8580
Author: @rragundez
Created: 1/15/2025
Status: ✅ Merged
Merged: 1/16/2025
Merged by: @tjbck
Base:
dev← Head:split-storage-providers📝 Commits (9)
a3f737cSplit the storage providers into separate classes in preparation for other storage providers like GCS0129255Set default storage provider to localdd16c3dadd function to retrieve the storage provider so it can be easily tested535e59aStart testing files for provider3aa28deAdd test classes for the providers357e7ddAdd tests for local provider021c1f3Add test for S3 using moto544243fAdd moto as a dependencyf14467cUpdate dependencies to include mock📊 Changes
5 files changed (+910 additions, -576 deletions)
View changed files
📝
backend/open_webui/config.py(+8 -8)📝
backend/open_webui/storage/provider.py(+84 -102)➕
backend/open_webui/test/apps/webui/storage/test_provider.py(+173 -0)📝
pyproject.toml(+1 -0)📝
uv.lock(+644 -466)📄 Description
Split the storage providers into separate classes in preparation for adding more cloud providers.
Suggested in #5763
Once merged after any modifications I will add the GCS storage provider which is actually the reason for me to contribute as I need it, to not hack my way into it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.