Skip to content

Commit e76b0a7

Browse files
committed
fix: update torch dependency to support platform-specific installation
1 parent 9ea37a4 commit e76b0a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ langchain-mcp-adapters = "0.1.9"
3737
langchain-huggingface = "0.3.0"
3838
langchain-ollama = "0.3.4"
3939
langgraph = "0.5.3"
40-
torch = {version = "2.8.0+cpu", source = "pytorch"}
40+
torch = [
41+
{ version = "2.8.0+cpu", markers = "sys_platform == 'linux'", source = "pytorch" },
42+
{ url = "https://download.pytorch.org/whl/cpu/torch-2.8.0-cp311-none-macosx_11_0_arm64.whl", markers = "sys_platform == 'darwin'" }
43+
]
4144
sentence-transformers = "5.0.0"
4245

4346
# 云服务SDK

0 commit comments

Comments
 (0)