API7 Docs

AI Prompt Decorator Configuration

Parameters

See plugin common configurations for configuration options available to all plugins.

  • prependarray[object] · optional

    An array of prompts to be prepended.

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

    • rolestring · required

      Valid values: system, user, or assistant

      Role of the message.

    • contentstring · required

      Content of the message (prompt).

  • appendarray[object] · optional

    An array of prompts to be appended.

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

    • rolestring · required

      Valid values: system, user, or assistant

      Role of the message.

    • contentstring · required

      Content of the message (prompt).

  • max_req_body_sizeinteger · optional · default: 67108864

    Valid values: 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.