Mistral AI · Schema
ChatModerationRequest
Properties
| Name | Type | Description |
|---|---|---|
| model | string | The moderation model to use |
| input | array | Chat messages to classify |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ChatModerationRequest",
"title": "ChatModerationRequest",
"type": "object",
"required": [
"model",
"input"
],
"properties": {
"model": {
"type": "string",
"description": "The moderation model to use",
"examples": [
"mistral-moderation-latest"
]
},
"input": {
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string",
"enum": [
"system",
"user",
"assistant"
]
},
"content": {
"type": "string"
}
}
},
"description": "Chat messages to classify"
}
}
}