build(deps): fix torch version.

This commit is contained in:
liqiang-fit2cloud 2025-06-16 11:36:39 +08:00
parent 7aa0b10f93
commit 357c887c93
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ RUN python3 -m venv /opt/py3 && \
pip install poetry==1.8.5 --break-system-packages && \
poetry config virtualenvs.create false && \
. /opt/py3/bin/activate && \
if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "^2.6.0+cpu", source = "pytorch"}/g' pyproject.toml; fi && \
if [ "$(uname -m)" = "x86_64" ]; then sed -i 's/^torch.*/torch = {version = "2.7.1+cpu", source = "pytorch"}/g' pyproject.toml; fi && \
poetry install && \
export MAXKB_CONFIG_TYPE=ENV && python3 /opt/maxkb-app/apps/manage.py compilemessages

View File

@ -27,6 +27,7 @@ langchain-mcp-adapters = "0.1.7"
langchain-huggingface = "0.3.0"
langchain-ollama = "0.3.3"
langgraph = "0.4.8"
torch = "2.7.1"
qianfan = "0.4.12.3"
zhipuai = "2.1.5.20250526"
boto3 = "1.38.35"