File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -394,6 +394,18 @@ LITELLM_UPGRADE_EOF
394394 log " Restarting DreamForge to pick up model change..."
395395 docker restart dream-dreamforge 2>&1 || log " WARNING: DreamForge restart failed (non-fatal)"
396396 fi
397+ # Recreate OpenClaw so inject-token.js picks up the new GGUF_FILE/LLM_MODEL
398+ # from .env. A restart alone won't work — env vars are baked in at container
399+ # creation time, and inject-token.js builds the Lemonade model name from them.
400+ if docker ps --filter name=dream-openclaw --format ' {{.Names}}' 2> /dev/null | grep -q dream-openclaw; then
401+ log " Recreating OpenClaw to pick up model change..."
402+ if [[ ${# COMPOSE_ARGS[@]} -gt 0 ]]; then
403+ docker compose " ${COMPOSE_ARGS[@]} " up -d --force-recreate openclaw 2>&1 || \
404+ log " WARNING: OpenClaw recreate failed (non-fatal)"
405+ else
406+ log " WARNING: No compose args — cannot recreate OpenClaw. Restart manually."
407+ fi
408+ fi
397409 else
398410 log " WARNING: llama-server health check timed out. The model may still be loading."
399411 log " Check: docker logs dream-llama-server"
You can’t perform that action at this time.
0 commit comments