[router] Allow empty worker list for sglang.launch_router (#2979)

This commit is contained in:
Byron Hsu
2025-01-19 17:05:23 +08:00
committed by GitHub
parent 53cc91e504
commit ef18b0eda2
8 changed files with 46 additions and 17 deletions

View File

@@ -1,9 +1,14 @@
#!/bin/bash
set -euxo pipefail
# these are required for actix
apt-get update
apt-get install -y libssl-dev pkg-config
# Check if sudo is available
if command -v sudo >/dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y libssl-dev pkg-config
else
apt-get update
apt-get install -y libssl-dev pkg-config
fi
# Install rustup (Rust installer and version manager)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y