mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-17 12:25:53 +08:00
fix: Update Qdrant multi-tenancy variable name for consistency in configuration
This commit is contained in:
parent
184d8dfd7e
commit
485bd7666c
@ -1751,7 +1751,7 @@ QDRANT_API_KEY = os.environ.get("QDRANT_API_KEY", None)
|
||||
QDRANT_ON_DISK = os.environ.get("QDRANT_ON_DISK", "false").lower() == "true"
|
||||
QDRANT_PREFER_GRPC = os.environ.get("QDRANT_PREFER_GRPC", "False").lower() == "true"
|
||||
QDRANT_GRPC_PORT = int(os.environ.get("QDRANT_GRPC_PORT", "6334"))
|
||||
QDRANT_MULTI_TENANCY = os.environ.get("QDRANT_MULTI_TENANCY", "false").lower() == "true"
|
||||
QDRANT_MULTITENANCY = os.environ.get("QDRANT_MULTITENANCY", "false").lower() == "true"
|
||||
|
||||
# OpenSearch
|
||||
OPENSEARCH_URI = os.environ.get("OPENSEARCH_URI", "https://localhost:9200")
|
||||
|
@ -1,6 +1,6 @@
|
||||
from open_webui.retrieval.vector.main import VectorDBBase
|
||||
from open_webui.retrieval.vector.type import VectorType
|
||||
from open_webui.config import VECTOR_DB, QDRANT_MULTI_TENANCY
|
||||
from open_webui.config import VECTOR_DB, QDRANT_MULTITENANCY
|
||||
|
||||
|
||||
class Vector:
|
||||
@ -16,7 +16,7 @@ class Vector:
|
||||
|
||||
return MilvusClient()
|
||||
case VectorType.QDRANT:
|
||||
if QDRANT_MULTI_TENANCY:
|
||||
if QDRANT_MULTITENANCY:
|
||||
from open_webui.retrieval.vector.dbs.qdrant_multitenancy import QdrantClient
|
||||
|
||||
return QdrantClient()
|
||||
|
Loading…
x
Reference in New Issue
Block a user