guardrails
Validate Blocked Words File
Changed onValidate a blocked_words YAML file content.
Args: request: Dictionary with 'file_content' key containing the YAML string
Returns: Dictionary with 'valid' boolean and either 'message'/'errors' depending on result
Example Request:
{
"file_content": "blocked_words:\n - keyword: \"test\"\n action: \"BLOCK\""
}
Example Success Response:
{
"valid": true,
"message": "Valid YAML file with 2 blocked words"
}
Example Error Response:
{
"valid": false,
"errors": ["Entry 0: missing 'action' field"]
}
post/guardrails/validate_blocked_words_file
Request
- Base URL: https://api.sea-lion.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.sea-lion.ai/guardrails/validate_blocked_words_file
- Auth: API key in header x-litellm-api-key
Request body
object required
Response
Successful Response
unknown required
Changes
- info
api tag
guardrailsadded - info
api tag
Guardrailsremoved - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info