{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/AiPromptTemplatePluginConfig", "title": "AiPromptTemplatePluginConfig", "x-speakeasy-entity": "PluginAiPromptTemplate", "properties": { "config": { "type": "object", "properties": { "allow_untemplated_requests": { "description": "Set true to allow requests that don't call or match any template.", "type": "boolean", "default": true }, "log_original_request": { "description": "Set true to add the original request to the Kong log plugin(s) output.", "type": "boolean", "default": false }, "max_request_body_size": { "description": "max allowed body size allowed to be introspected. 0 means unlimited, but the size of this body will still be limited by Nginx's client_max_body_size.", "type": "integer", "default": 1048576 }, "templates": { "description": "Array of templates available to the request context.", "type": "array", "items": { "properties": { "name": { "description": "Unique name for the template, can be called with `{template://NAME}`", "type": "string" }, "template": { "description": "Template string for this request, supports mustache-style `{{placeholders}}`", "type": "string" } }, "required": [ "name", "template" ], "type": "object" } } }, "required": [ "templates" ] }, "consumer": { "description": "If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.", "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" } } }, "consumer_group": { "description": "If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups", "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" } } }, "name": { "const": "ai-prompt-template" }, "protocols": { "description": "A set of strings representing HTTP protocols.", "type": "array", "items": { "enum": [ "grpc", "grpcs", "http", "https" ], "type": "string" }, "format": "set", "default": [ "grpc", "grpcs", "http", "https" ] }, "route": { "description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.", "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" } } }, "service": { "description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.", "type": "object", "additionalProperties": false, "properties": { "id": { "type": "string" } } } }, "required": [ "config" ] }