mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
chore: Raise if QDRANT_URI is not set
Signed-off-by: Anush008 <anushshetty90@gmail.com>
This commit is contained in:
parent
c8a49d373a
commit
17debaa6de
1 changed files with 3 additions and 2 deletions
|
|
@ -53,8 +53,9 @@ class QdrantClient(VectorDBBase):
|
||||||
self.GRPC_PORT = QDRANT_GRPC_PORT
|
self.GRPC_PORT = QDRANT_GRPC_PORT
|
||||||
|
|
||||||
if not self.QDRANT_URI:
|
if not self.QDRANT_URI:
|
||||||
self.client = None
|
raise ValueError(
|
||||||
return
|
"QDRANT_URI is not set. Please configure it in the environment variables."
|
||||||
|
)
|
||||||
|
|
||||||
# Unified handling for either scheme
|
# Unified handling for either scheme
|
||||||
parsed = urlparse(self.QDRANT_URI)
|
parsed = urlparse(self.QDRANT_URI)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue