python server

This commit is contained in:
Adam Wilson
2025-05-18 13:54:40 -06:00
parent 42749c2410
commit dd2ad3dec7
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -33,7 +33,7 @@ jobs:
- name: 'run HTTP server and call REST API'
run: |
nohup python -m tests.api.server > server.log 2>&1 &
python -m tests.api.server
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
echo
@@ -43,8 +43,6 @@ jobs:
--generator_option_file ${{ github.workspace }}/tests/tools/garak.rest.llm.json \
--model_type=rest \
--parallel_attempts 32
cat server.log
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
+1 -3
View File
@@ -33,7 +33,7 @@ jobs:
- name: 'run HTTP server and call REST API'
run: |
nohup python -m tests.api.server > server.log 2>&1 &
python -m tests.api.server
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
echo
@@ -44,8 +44,6 @@ jobs:
--model_type=rest \
--parallel_attempts 32
cat server.log
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: 'garak_report'