Flask API

This commit is contained in:
Adam Wilson
2025-05-18 14:48:59 -06:00
parent e5c47ac8fb
commit 8679f9ad8d
19 changed files with 34 additions and 15 deletions
+2 -2
View File
@@ -33,9 +33,9 @@ jobs:
- name: 'run HTTP server and call REST API'
run: |
python -m tests.api.server
python -m src.api.controller
sleep 2
curl -X POST -i localhost:9999/api/conversations -d '{ "prompt": "describe a random planet in our solar system in 10 words or less" }' || exit 1
curl -X POST -i localhost:9998/api/conversations -d '{ "prompt": "describe a random planet in our solar system in 10 words or less" }' -H "Content-Type: application/json" || exit 1
echo
garak -v \