Open krrishdholakia opened 1 month ago
curl --location 'http://0.0.0.0:4000/chat/completions' \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-4o", "metadata": { "guardrails": {"prompt_injection": .7, "content_moderation": false}, }, "messages": [ { "role": "user", "content": "Who won the world cup in 2022? " } ], "stream": false }'
If a team is allowed to enable/disable, they should be allowed to set the threshold.
@clintz
not clear how this suggested curl would map to the guardrails config
the other approach here looks pretty complicated, so it should be simpler imo
The Feature
Motivation, pitch
If a team is allowed to enable/disable, they should be allowed to set the threshold.
Twitter / LinkedIn details
@clintz