moderations | R Documentation |
moderations Class
moderations Class
openaistream::openai
-> moderations
create()
Classifies if text violates OpenAI's Content Policy.
moderations$create(input, ..., verbosity = 0)
input
character Required. The input text to classify.
...
Additional parameters as required by the OpenAI API.For example:model...
verbosity
numeric. Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.).
Returns a list of image objects.
clone()
The objects of this class are cloneable with this method.
moderations$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.