View Source OpenAI.Moderations (OpenAI API Wrapper v0.1.3)
Provides functions for interacting with OpenAI's moderation API.
See OpenAI Moderations API documentation here.
Link to this section Summary
Functions
Classifies if text violates OpenAI's Content Policy.
Link to this section Types
@type create_params() :: {:model, binary()}
Link to this section Functions
@spec create(binary(), [create_params()]) :: {:ok, map()} | {:error, OpenAI.Error.t()}
Classifies if text violates OpenAI's Content Policy.