commonMain.com.aallam.openai.client.Moderations.kt Maven / Gradle / Ivy
package com.aallam.openai.client
import com.aallam.openai.api.moderation.ModerationRequest
import com.aallam.openai.api.moderation.TextModeration
/**
* Given an input text, outputs if the model classifies it as violating OpenAI's content policy.
*/
public interface Moderations {
/**
* Classifies if text violates OpenAI's Content Policy.
*/
public suspend fun moderations(request: ModerationRequest): TextModeration
}