# AI Prompt Decorator Configuration

The `ai-prompt-decorator` plugin decorates user prompts to LLMs by prefixing and appending pre-engineered prompts, streamlining API operation and content generation.<!-- --> <!-- -->Configuration covers plugin parameters.

## Parameters[​](#parameters "Direct link to Parameters")

See plugin [common configurations](https://docs.api7.ai/apisix/reference/plugin-common-configurations.md) for configuration options available to all plugins.

* prepend

  array\[object]

  ***

  An array of prompts to be prepended.

  At least one of the `prepend` or `append` should be configured.

  * role

    string

    required

    valid value:

    `system`, `user`, or `assistant`

    ***

    Role of the message.

  * content

    string

    required

    ***

    Content of the message (prompt).

* append

  array\[object]

  ***

  An array of prompts to be appended.

  At least one of the `prepend` or `append` should be configured.

  * role

    string

    required

    valid value:

    `system`, `user`, or `assistant`

    ***

    Role of the message.

  * content

    string

    required

    ***

    Content of the message (prompt).

* max\_req\_body\_size

  integer

  default: `67108864`

  valid value:

  greater than or equal to 1

  ***

  Maximum request body size in bytes buffered into memory. Larger request bodies are rejected with HTTP 400 before prompt decoration. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and APISIX 3.18.0.
