AI Azure Content Safety

AI License Required

Log blocked request and response contentv3.14+

Configure the AI Azure Content Safety plugin to log the raw content of blocked requests and responses. When a request or response is blocked, the original prompt or response body is captured in the Kong Gateway logs under ai.proxy.azure-content-safety.input_faulty_prompt and ai.proxy.azure-content-safety.output_faulty_response.

Prerequisites

Environment variables

  • CONTENT_SAFETY_URL: The full URL of the Azure AI Content Safety instance.

  • CONTENT_SAFETY_KEY: The API key to access the Azure AI Content Safety instance.

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!