mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix: add --port to suggested command, guard /dev/tty exec in install.sh
This commit is contained in:
parent
1fbf098108
commit
d1aa7029b7
2 changed files with 7 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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:"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue