mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-02 05:38:12 +00:00
fix: auto-use qdrant-edge on Windows where lancedb has no wheels (#5045)
lancedb v0.30.x only ships wheels for Linux and macOS. On Windows, `crewai install` fails because there is no compatible distribution. This change: - Makes lancedb a platform-conditional dependency (non-Windows only) - Adds qdrant-edge-py as an automatic dependency on Windows - Defaults Memory storage to qdrant-edge on Windows Closes #5045
This commit is contained in:
@@ -43,7 +43,8 @@ dependencies = [
|
||||
"uv~=0.9.13",
|
||||
"aiosqlite~=0.21.0",
|
||||
"pyyaml~=6.0",
|
||||
"lancedb>=0.29.2,<0.30.1",
|
||||
"lancedb>=0.29.2,<0.30.1; sys_platform != 'win32'",
|
||||
"qdrant-edge-py>=0.6.0; sys_platform == 'win32'",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from concurrent.futures import Future, ThreadPoolExecutor
|
||||
import contextvars
|
||||
from datetime import datetime
|
||||
@@ -68,7 +69,7 @@ class Memory(BaseModel):
|
||||
description="LLM for analysis (model name or BaseLLM instance).",
|
||||
)
|
||||
storage: Annotated[StorageBackend | str, PlainValidator(_passthrough)] = Field(
|
||||
default="lancedb",
|
||||
default="qdrant-edge" if sys.platform == "win32" else "lancedb",
|
||||
description="Storage backend instance or path string.",
|
||||
)
|
||||
embedder: Any = Field(
|
||||
|
||||
Reference in New Issue
Block a user