This depends on the compiler and build system you are using, but it all boils down to the same thing. In order to decide whether assert statements should be active or not, the preprocessor checks for the existence of a preprocessor definition `NDEBUG`. If this is defined, then assert statements will be filtered out of your code by the preprocessor before compilation.

How to accomplish this depends a lot on your build set-up. Are you using CMake, makefiles, visual studio, or perhaps even just invoking the compiler directly? If I know more about how you are currently building your code, I can give specific advice.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence