Fix knowledge_storage.py import error handling for optional chromadb dependency

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-04-26 19:10:30 +00:00
parent 6435a419d7
commit 86155b4590

View File

@@ -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]`."
)