Skip to content

tattle-made/llamaguard-uli

Repository files navigation

Moderation Service

curl call examples

  1. check API status
curl -X GET http://127.0.0.1:8000/
  1. 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?"}'
  1. 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"}'
  1. 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"}'
  1. 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?"}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published