fix: version constant and CPU torch install for Docker release

- Bump APP_VERSION to 1.15.11 (was hardcoded at 1.15.9, causing
  health endpoint to report wrong version in Docker images)
- Fix cpu_fallback_packages() splitting --index-url into separate
  pip install arguments, breaking torch install on CPU-only amd64
This commit is contained in:
SnapOtter
2026-04-25 08:49:31 +08:00
parent 291e4092cd
commit 8bc8b18f90
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -87,7 +87,8 @@ def cpu_fallback_packages(packages: list[str]) -> list[str]:
# Use CPU-only wheels (~200MB vs ~2.6GB with CUDA)
cpu_pkgs.append("--index-url")
cpu_pkgs.append("https://download.pytorch.org/whl/cpu")
result.extend(cpu_pkgs)
# Join into a single string so pip_install processes them as one command
result.append(" ".join(cpu_pkgs))
continue
name = pkg.split("==")[0].split(">=")[0].split("[")[0].strip()