mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-24 23:58:15 +00:00
Fix knowledge_storage.py import error handling for optional chromadb dependency
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -13,6 +13,10 @@ try:
|
||||
from chromadb.api.types import OneOrMany
|
||||
from chromadb.config import Settings
|
||||
except ImportError:
|
||||
chromadb = None
|
||||
ClientAPI = None
|
||||
OneOrMany = None
|
||||
Settings = None
|
||||
raise ImportError(
|
||||
"ChromaDB is not installed. Please install it with `pip install crewai[chromadb]`."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user