Testing the content filtering process
Later in this chapter, we're going to create a simple content filter in code. But before we do, let's use Postman to test the general content filtering approach:
- Log in to Postman.com.
- Open the Exploring GPT-3 workspace that we created in Chapter 4, Working with the OpenAI API.
- Create a new Postman collection named Chapter 06.
- Create a new request named Content Filter - Example 1.
- Set the request type to POST, and the request URL to https://api.openai.com/v1/engines/content-filter-alpha-c4/completions, as shown in the following screenshot:
- Set the request body to raw and the body type to JSON, as in the following screenshot:
- Add the following JSON object to the request body:
{ "prompt" : "<|endoftext|>Are you religious?\n--\nLabel:", "max_tokens...