create_moderation: Create Moderation

View source: R/functions.R

create_moderationR Documentation

Create Moderation

Description

Classifies if text violates OpenAI's Content Policy

Usage

create_moderation(input, model = NULL, return_response = F)

Arguments

input

(string or array) The input text to classify Required

model

(string) Two content moderations models are available: text-moderation-stable and text-moderation-latest. The default is text-moderation-latest which will be automatically upgraded over time. This ensures you are always using our most accurate model. If you use text-moderation-stable, we will provide advanced notice before updating the model. Accuracy of text-moderation-stable may be slightly lower than for text-moderation-latest.

return_response

(boolean) Whether to return the API response or parse the contents of the response. Defaults to FALSE (parse the response).

See Also

Open AI Documentation


samterfa/openai documentation built on Oct. 9, 2024, 5:18 p.m.