renminwansui1976 commited on
Commit
ed38715
·
unverified ·
1 Parent(s): 2199f6e

更新 start.sh

Browse files
Files changed (1) hide show
  1. start.sh +3 -3
start.sh CHANGED
@@ -10,7 +10,7 @@ LITELLM_PID=""
10
  if [ -z "${LITELLM_API_KEY:-}" ] || [ -z "${LITELLM_MODEL:-}" ]; then
11
  echo "[start.sh] LITELLM_API_KEY or LITELLM_MODEL not set — starting OpenClaw without LiteLLM proxy"
12
  echo "[start.sh] You can configure AI providers through OpenClaw's UI after startup"
13
- exec openclaw gateway --port 7860 --host 0.0.0.0 --allow-unconfigured
14
  fi
15
 
16
  # ── 2. Write LiteLLM proxy config ─────────────────────────────────────────────
@@ -56,7 +56,7 @@ WAITED=0
56
  until curl -sf http://127.0.0.1:4000/health/liveliness > /dev/null 2>&1; do
57
  if [ "$WAITED" -ge "$MAX_WAIT" ]; then
58
  echo "[start.sh] WARNING: LiteLLM not healthy after ${MAX_WAIT}s — starting OpenClaw without proxy"
59
- exec openclaw gateway --port 7860 --host 0.0.0.0 --allow-unconfigured
60
  fi
61
  sleep 1
62
  WAITED=$((WAITED + 1))
@@ -67,4 +67,4 @@ echo "[start.sh] LiteLLM healthy after ${WAITED}s"
67
  exec env \
68
  OPENAI_API_KEY=litellm-proxy \
69
  OPENAI_BASE_URL=http://127.0.0.1:4000 \
70
- openclaw gateway --port 7860 --host 0.0.0.0 --allow-unconfigured
 
10
  if [ -z "${LITELLM_API_KEY:-}" ] || [ -z "${LITELLM_MODEL:-}" ]; then
11
  echo "[start.sh] LITELLM_API_KEY or LITELLM_MODEL not set — starting OpenClaw without LiteLLM proxy"
12
  echo "[start.sh] You can configure AI providers through OpenClaw's UI after startup"
13
+ exec openclaw gateway --port 7860 --bind lan --allow-unconfigured
14
  fi
15
 
16
  # ── 2. Write LiteLLM proxy config ─────────────────────────────────────────────
 
56
  until curl -sf http://127.0.0.1:4000/health/liveliness > /dev/null 2>&1; do
57
  if [ "$WAITED" -ge "$MAX_WAIT" ]; then
58
  echo "[start.sh] WARNING: LiteLLM not healthy after ${MAX_WAIT}s — starting OpenClaw without proxy"
59
+ exec openclaw gateway --port 7860 --bind lan --allow-unconfigured
60
  fi
61
  sleep 1
62
  WAITED=$((WAITED + 1))
 
67
  exec env \
68
  OPENAI_API_KEY=litellm-proxy \
69
  OPENAI_BASE_URL=http://127.0.0.1:4000 \
70
+ openclaw gateway --port 7860 --bind lan --allow-unconfigured