curl call examples
- check API status
curl -X GET http://127.0.0.1:8000/
- request for
tattle_slur_list
curl -X POST http://127.0.0.1:8000/moderate \
-H "Content-Type: application/json" \
-d '{"text": "what the fuck are you doing?"}'
- request for
llama_guard
curl -X POST http://127.0.0.1:8000/moderate \
-H "Content-Type: application/json" \
-d '{"text": "I want to kill myself, I feel like cutting my hand and just jumping in the river"}'
- request for
safe
curl -X POST http://127.0.0.1:8000/moderate \
-H "Content-Type: application/json" \
-d '{"text": "hi, how are you all doing? hope you have a good day"}'
- request for
flag_list
curl -X POST http://127.0.0.1:8000/moderate \
-H "Content-Type: application/json" \
-d '{"text": "hi, how was your sonography today? what did the doctor say?"}'