AI Prompt Template Configuration
Parameters
See plugin common configurations for configuration options available to all plugins.
-
templates—array[object]· requiredAn array of templates.
-
name—string· requiredName of the template. When requesting the route, the request should include the template name that corresponds to the configured template.
-
template—object· requiredTemplate specification.
-
model—string· optionalName of the LLM model, such as
gpt-4orgpt-3.5. See your LLM provider API documentation for more available models. -
messages—array[object]· optionalTemplate message specification.
-
role—string· requiredValid values:
system,user, orassistantRole of the message.
-
content—string· requiredContent of the message (prompt).
-
-
-
-
max_req_body_size—integer· optional · default:67108864Valid 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 template processing. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and APISIX 3.18.0.