Skip to content

Commit 4e9a882

Browse files
committed
fix(ai-prompt-decorator): increase max length for content field
1 parent 303ecb3 commit 4e9a882

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
message: |
2+
Fixed an issue where the `ai-prompt-decorator` plugin prompt field was too short.
3+
type: feature
4+
scope: Plugin

kong/plugins/ai-prompt-decorator/schema.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local prompt_record = {
55
required = false,
66
fields = {
77
{ role = { type = "string", required = true, one_of = { "system", "assistant", "user" }, default = "system" }},
8-
{ content = { type = "string", required = true, len_min = 1, len_max = 500 } },
8+
{ content = { type = "string", required = true, len_min = 1, len_max = 100000 } },
99
}
1010
}
1111

0 commit comments

Comments
 (0)