Can we block certain keywords in output?


Just wondering if we can block certain keywords from the output? For example I do not want “Politics” or “War” in any of the output

1 Like

You could use very simple code to either remove any blocked words or resend the request until it doesn’t contain the blocked word. Another option would be to train a gpt model to decide if the output is ok for your application somewhat like the content filter.