fix: add --port to suggested command, guard /dev/tty exec in install.sh

This commit is contained in:
Ishaan Jaffer 2026-03-14 15:38:50 -07:00
parent 1fbf098108
commit d1aa7029b7
2 changed files with 7 additions and 2 deletions

View file

@ -574,7 +574,7 @@ class SetupWizard:
print()
print(f" {bold('To start your proxy:')}")
print()
print(f" {grey('$')} litellm --config {config_path}")
print(f" {grey('$')} litellm --config {config_path} --port {port}")
print()
print(f" {bold('Then set your client:')}")
print()

View file

@ -125,7 +125,12 @@ fi
if [ -z "$answer" ] || [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then
echo ""
exec "$LITELLM_BIN" --setup </dev/tty
# Use /dev/tty for interactive input when available (stdin is a pipe from curl)
if [ -r /dev/tty ]; then
exec "$LITELLM_BIN" --setup </dev/tty
else
exec "$LITELLM_BIN" --setup
fi
else
echo ""
header "Quick start:"