From 4e9a88216918e9a3c0f8c72eaced4fd92c054297 Mon Sep 17 00:00:00 2001 From: Jack Tysoe Date: Wed, 1 Oct 2025 17:05:16 +0100 Subject: [PATCH] fix(ai-prompt-decorator): increase max length for content field --- .../kong/fix_ai_prompt_decorator_content_length.yml | 4 ++++ kong/plugins/ai-prompt-decorator/schema.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/kong/fix_ai_prompt_decorator_content_length.yml diff --git a/changelog/unreleased/kong/fix_ai_prompt_decorator_content_length.yml b/changelog/unreleased/kong/fix_ai_prompt_decorator_content_length.yml new file mode 100644 index 00000000000..261dc0dbcd7 --- /dev/null +++ b/changelog/unreleased/kong/fix_ai_prompt_decorator_content_length.yml @@ -0,0 +1,4 @@ +message: | + Fixed an issue where the `ai-prompt-decorator` plugin prompt field was too short. +type: feature +scope: Plugin diff --git a/kong/plugins/ai-prompt-decorator/schema.lua b/kong/plugins/ai-prompt-decorator/schema.lua index a0a83bc71c0..d1556ba9379 100644 --- a/kong/plugins/ai-prompt-decorator/schema.lua +++ b/kong/plugins/ai-prompt-decorator/schema.lua @@ -5,7 +5,7 @@ local prompt_record = { required = false, fields = { { role = { type = "string", required = true, one_of = { "system", "assistant", "user" }, default = "system" }}, - { content = { type = "string", required = true, len_min = 1, len_max = 500 } }, + { content = { type = "string", required = true, len_min = 1, len_max = 100000 } }, } }