Get Privacy Filter model metadata
GET/api/v2/privacyfilter/info
Returns the model serving the filter and the categories it can detect, which are the values accepted by the other methods' category filter.
Responses
- 200
- 400
- 401
- 403
- 500
Success
- application/json
- Schema
- Example (from schema)
- Example
Schema
Model identifier.
Task the model performs.
Inference engine serving the model.
Categories the model can detect, accepted by the categories filter of the other methods.
Maximum number of tokens the model accepts per input.
Whether the model is loaded and ready to serve requests.
{
"id": "string",
"task": "string",
"engine": "string",
"labels": [
"string"
],
"n_ctx": 0,
"loaded": true
}
{
"id": "openai/privacy-filter",
"task": "token-classification",
"engine": "opf",
"labels": [
"account_number",
"private_address",
"private_date",
"private_email",
"private_person",
"private_phone",
"private_url",
"secret"
],
"n_ctx": 128000,
"loaded": true
}
If no connection setting is configured for the Privacy Filter service (validation_error).
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
The request is not authenticated.
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
The caller is not allowed to execute AI services.
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
Internal server error.
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}