mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-05-24 17:14:08 +02:00
Flask API
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user