ExOpenAI.Components.CreateModerationResponse (ex_openai.ex v1.0.4) View Source
Schema representing a CreateModerationResponse within the OpenAI API
Link to this section Summary
Link to this section Types
Specs
t() :: %ExOpenAI.Components.CreateModerationResponse{ id: String.t(), model: String.t(), results: [ %{ categories: %{ hate: boolean(), "hate/threatening": boolean(), "self-harm": boolean(), sexual: boolean(), "sexual/minors": boolean(), violence: boolean(), "violence/graphic": boolean() }, category_scores: %{ hate: float(), "hate/threatening": float(), "self-harm": float(), sexual: float(), "sexual/minors": float(), violence: float(), "violence/graphic": float() }, flagged: boolean() } ] }