by Retr0id · 2y ago · 0 comments
OpenAI could presumably add a "did the safety net kick in?" boolean to API responses, and, also presumably, they don't want to do that because it would make it easier to systematically bypass.
Is a safety net kicking in or is the model just trained to respond with a refusal to certain prompts? I am fairly sure it's usually the latter, and in that case even OpenAI can't be sure a particular response is a refusal or not.
Or do traditional NLP, but letting ChatGPT classify your text is less effort to set up
Just kidding, it should only require function calling[0] to solve this. Make the program return an error if the output isn't a boolean. It's easy to avoid this mistake.
[0]: https://platform.openai.com/docs/guides/function-calling
This exists and is a free API: https://platform.openai.com/docs/guides/moderation
Not my original idea, there was a link from HN where the dev did just that.