#!/usr/bin/env bash set -euo pipefail # Smoke-tests the no-reply API endpoint exposed by the sidecar service. # The sidecar must already be running (it starts automatically with openclaw-gateway). # Default base URL matches the sidecar's no-reply prefix. BASE_URL="${BASE_URL:-http://127.0.0.1:8787/no-reply}" echo "[1] health" curl -fsS "${BASE_URL}/health" echo "" echo "[2] models" curl -fsS "${BASE_URL}/v1/models" | head -c 200 echo "" echo "[3] chat/completions" curl -fsS -X POST "${BASE_URL}/v1/chat/completions" \ -H 'Content-Type: application/json' \ -d '{"model":"no-reply","messages":[{"role":"user","content":"hello"}]}' \ | head -c 300 echo "" echo "[4] responses" curl -fsS -X POST "${BASE_URL}/v1/responses" \ -H 'Content-Type: application/json' \ -d '{"model":"no-reply","input":"hello"}' \ | head -c 300 echo "" echo "smoke ok"