Explorer
/tmp/test-hermes-gateway.sh
← Zurück ↓ Download
#!/usr/bin/env bash
set -euo pipefail
key=$(sed -n 's/^HERMES_API_TOKEN=//p' /opt/struktur/hermes-ui-auswahl/.env)
echo models:
curl -sS -o /tmp/hm -w '%{http_code}\n' -H "Authorization: Bearer $key" http://127.0.0.1:8653/v1/models
head -c 800 /tmp/hm; echo
echo health:
curl -sS -o /tmp/hh -w '%{http_code}\n' -H "Authorization: Bearer $key" http://127.0.0.1:8653/health
head -c 400 /tmp/hh; echo