fix(install.sh): suppress RuntimeWarning from module invocation

This commit is contained in:
Ishaan Jaffer 2026-03-14 12:05:08 -07:00
parent 5c757ba9d0
commit 86162d7714

View file

@ -88,7 +88,7 @@ echo ""
echo ""
success "LiteLLM installed"
installed_ver="$("$PYTHON_BIN" -m litellm.proxy.proxy_cli --version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1 || true)"
installed_ver="$("$PYTHON_BIN" -W ignore::RuntimeWarning -m litellm.proxy.proxy_cli --version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1 || true)"
[ -n "$installed_ver" ] && info "Version: $installed_ver"
# ── PATH hint ──────────────────────────────────────────────────────────────
@ -104,7 +104,7 @@ read -r answer </dev/tty
if [ -z "$answer" ] || [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
echo ""
exec "$PYTHON_BIN" -m litellm.proxy.proxy_cli --setup
exec "$PYTHON_BIN" -W ignore::RuntimeWarning -m litellm.proxy.proxy_cli --setup
else
echo ""
header "Quick start:"