Moderations
Changed onClassify text or multimodal inputs with OpenAI moderation.
Request
- Base URLhttps://api.llmgateway.io
- AuthHTTP bearer
Request body
Example request
{
"input": "I want to harm someone.",
"model": "omni-moderation-latest"
}Response
Moderation response.
Example response
{
"id": "modr-123",
"model": "openai/openai-moderation",
"results": [
{
"flagged": true,
"categories": {
"violence": true,
"self_harm": false
},
"category_scores": {
"violence": 0.98,
"self_harm": 0.01
}
}
]
}Changes
- breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking