View Source OpenAi.Moderations (OpenAI REST API Client v1.0.1)

Provides API endpoint related to moderations

Summary

Functions

Classifies if text and/or image inputs are potentially harmful. Learn more in the moderation guide.

Functions

Link to this function

create_moderation(body, opts \\ [])

View Source
@spec create_moderation(
  body :: OpenAi.Moderation.CreateRequest.t(),
  opts :: keyword()
) ::
  {:ok, OpenAi.Moderation.CreateResponse.t()} | {:error, OpenAi.Error.error()}

Classifies if text and/or image inputs are potentially harmful. Learn more in the moderation guide.