Add a header to a response bodyv3.6+

Configure the plugin to use OpenAI GPT-4 to add a header to the response before returning it to the client. See Transform a response using OpenAI for a full how-to guide with this example.

Prerequisites

  • You have an OpenAI subscription.

Environment variables

  • OPENAI_API_KEY: An API key to connect to the OpenAI API.

Set up the plugin

Something wrong?

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!