Skip to main content
Validates that content does not contain certain topics.

Options:

  • denied_topics: An array of topics to disallow, e.g., [“medical advice”, “profanity”]
  • threshold: Float between 0-1, describes how sensitive should the classifier be. A higher threshold means, the content has to be highly related with the topic for the guardrail to fail the request.

Example