mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #10755] [MERGED] Conditional import of ldap3 and chromadb #77461
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/10755
Author: @softue
Created: 2/25/2025
Status: ✅ Merged
Merged: 2/26/2025
Merged by: @tjbck
Base:
dev← Head:check-if-enable-ldap-chroma📝 Commits (2)
b52a7e3refac: conditional import of chromadb2298bfbrefac: conditional import of ldap3📊 Changes
2 files changed (+23 additions, -19 deletions)
View changed files
📝
backend/open_webui/config.py(+18 -17)📝
backend/open_webui/routers/auths.py(+5 -2)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Conditional import of ldap3 and chromadb.
Changed
Check VECTOR_DB var before chromadb import.
Check ENABLE_LDAP var before ldap3 import.
Additional Information
Import these libraries only if they are enabled.
Enabling ldap3 requires restarting the server.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.