fix: need Content-Type header in smoke test script

This commit is contained in:
nobody 2025-11-27 11:20:29 -08:00
commit 4aa8759514
Signed by: GrocerPublishAgent
GPG key ID: D460CD54A9E3AB86
2 changed files with 3 additions and 2 deletions

View file

@ -98,7 +98,7 @@ curl -s "$host/models"
echo echo
echo "=== /salience ===" echo "=== /salience ==="
curl -s -X POST -d "The cat sat on the mat. The dog chased the cat." "$host/salience?model=all-mpnet-base-v2" curl -s --data-binary -H "Content-Type: text/plain" "The cat sat on the mat. The dog chased the cat." "$host/salience?model=all-mpnet-base-v2"
echo echo
EOH EOH
destination = "local/smoke-test.sh" destination = "local/smoke-test.sh"

View file

@ -17,4 +17,5 @@ class timed_import:
def __exit__(self, *args): def __exit__(self, *args):
elapsed = time.time() - self.start elapsed = time.time() - self.start
print(f"in {elapsed:.1f}s") sys.stdout.write(f"in {elapsed:.1f}s\n")
sys.stdout.flush()