#!/usr/bin/env bash
set -euo pipefail
key=$(sed -n 's/^HERMES_API_TOKEN=//p' /opt/struktur/hermes-ui-auswahl/.env)
curl --max-time 30 -sS -N -H "Authorization: Bearer $key" -H 'Content-Type: application/json' \
http://127.0.0.1:8653/v1/chat/completions \
--data '{"model":"hermes-agent","messages":[{"role":"user","content":"Antworte exakt: DIRECT_GATEWAY_OK"}],"stream":true}' | head -30