mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-05-12 04:31:35 +02:00
python server
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user