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
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
Returns a list of image objects.
Method clone()
The objects of this class are cloneable with this method.
Usage
moderations$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
[Package openaistream version 0.3.0 Index]