mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #14258] feat: Make Non-Core Dependencies Optional #17193
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?
Originally created by @Azzeo on GitHub (May 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14258
Check Existing Issues
Problem Description
The current Open WebUI installation requires installing ALL dependencies regardless of actual usage needs. This creates several issues:
Desired Solution you'd like
Reorganize
pyproject.tomlto use Python's optional dependencies feature and change the Dockerfile to use appropriate dependencies (depending on the tag):Installation Examples
This change requires modifying imports throughout the codebase to handle optional dependencies gracefully. E.g. with lazy imports or conditional imports with fallbacks
Alternatives Considered
Multiple Package Variants: Create separate packages like
open-webui-lite,open-webui-gpu, etc.Docker-only Solution: Only optimize Docker images with gpu/minimum tags that truly installs what it says it should install
Additional Context
Breaking Changes
pip install open-webui[all]@tjbck commented on GitHub (May 23, 2025):
PR welcome!