salience-editor/api/smoke-test.sh

11 lines
265 B
Bash
Raw Normal View History

2025-11-29 13:56:55 -08:00
#!/bin/sh
host=http://127.0.0.1:15000
2025-11-29 13:56:55 -08:00
echo "=== /models ==="
curl -s "$host/models"
echo
echo "=== /salience ==="
curl -s -H "Content-Type: text/plain" --data-binary "The cat sat on the mat. The dog chased the cat." "$host/salience?model=all-mpnet-base-v2"
echo