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 } }, } }