View source: R/create_moderation.R
| create_moderation | R Documentation | 
Classifies if text violates OpenAI's Content Policy. See this page for details.
create_moderation(
  input,
  model,
  openai_api_key = Sys.getenv("OPENAI_API_KEY"),
  openai_organization = NULL
)
| input | required; an arbitrary length character vector. | 
| model | required; a length one character vector. | 
| openai_api_key | required; defaults to  | 
| openai_organization | optional; defaults to  | 
For arguments description please refer to the official documentation.
Returns a list, elements of which contain information about the model.
## Not run: 
create_moderation(
    input = "I want to kill them all.",
    model = "text-moderation-stable"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.