| moderations {openaistream} | R Documentation |
moderations Class
Description
moderations Class
moderations Class
Super class
openaistream::openai -> moderations
Methods
Public methods
Inherited methods
Method create()
Classifies if text violates OpenAI's Content Policy.
Usage
moderations$create(input, ..., verbosity = 0)
Arguments
inputcharacter Required. The input text to classify.
...Additional parameters as required by the OpenAI API.For example:model...
verbositynumeric. 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
Returns a list of image objects.
Method clone()
The objects of this class are cloneable with this method.
Usage
moderations$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
[Package openaistream version 0.3.0 Index]