This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ROCm-Research-Archive/Scripts and Tests/_test_stream.sh
T
2026-08-20 00:45:43 +02:00

17 lines
483 B
Bash

#!/bin/bash
# Test streaming SSE from chat proxy
echo "=== Stream test ==="
timeout 15 curl -sN \
http://localhost:9090/api/proxy/chat \
-H 'Content-Type: application/json' \
-d '{"messages":[{"role":"user","content":"Say hi in one word"}],"stream":true}' \
2>&1 | tee /tmp/stream_test.txt
echo ""
echo "=== Stream output size ==="
wc -c /tmp/stream_test.txt
echo "=== Has DONE ==="
grep -c DONE /tmp/stream_test.txt
echo "=== Last 3 lines ==="
tail -3 /tmp/stream_test.txt