Postcheck: Voice-Smoke mit 3 Versuchen (Session-Kaltstart nach Gateway-Neustart war Fehlalarm)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -68,12 +68,20 @@ else
|
|||||||
echo "SKIP · Tool-Smoke (kein API_SERVER_KEY in $HERMES/.env gefunden)"
|
echo "SKIP · Tool-Smoke (kein API_SERVER_KEY in $HERMES/.env gefunden)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# --- Voice-Smoke: Lucys Sprech-Pfad antwortet zügig (first byte des SSE-Streams). ---
|
# --- Voice-Smoke: Lucys Sprech-Pfad streamt. Mit Retry: direkt nach dem Gateway-Neustart ---
|
||||||
if curl -sf -m 30 -N -X POST "$MC_URL/api/voice/chat" -H "Content-Type: application/json" \
|
# --- zahlt der erste Turn den Session-Kaltstart (Prefill) — ein Versuch wäre ein Fehlalarm. ---
|
||||||
-d '{"text":"Sag nur ok.","session_id":"postcheck-voice-smoke"}' 2>/dev/null | head -c 50 | grep -q "data:"; then
|
voice_ok=0
|
||||||
echo "PASS · Voice-Smoke (Lucys /api/voice/chat streamt)"
|
for try in 1 2 3; do
|
||||||
|
if curl -sf -m 45 -N -X POST "$MC_URL/api/voice/chat" -H "Content-Type: application/json" \
|
||||||
|
-d '{"text":"Sag nur ok.","session_id":"postcheck-voice-smoke"}' 2>/dev/null | head -c 50 | grep -q "data:"; then
|
||||||
|
voice_ok=1; break
|
||||||
|
fi
|
||||||
|
sleep 8
|
||||||
|
done
|
||||||
|
if [ "$voice_ok" -eq 1 ]; then
|
||||||
|
echo "PASS · Voice-Smoke (Lucys /api/voice/chat streamt, Versuch $try)"
|
||||||
else
|
else
|
||||||
echo "FAIL · Voice-Smoke: /api/voice/chat streamt nicht"; fail=1
|
echo "FAIL · Voice-Smoke: /api/voice/chat streamt nicht (3 Versuche)"; fail=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$fail" -eq 0 ]; then
|
if [ "$fail" -eq 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user