diff --git a/changelog/unreleased/kong/fix-ai-plugin-no-consumer.yml b/changelog/unreleased/kong/fix-ai-plugin-no-consumer.yml new file mode 100644 index 000000000000..872655cb0adf --- /dev/null +++ b/changelog/unreleased/kong/fix-ai-plugin-no-consumer.yml @@ -0,0 +1,4 @@ +message: "Fix certain AI plugins cannot be applied per consumer or per service." +type: bugfix +scope: Plugin + diff --git a/kong/plugins/ai-prompt-template/schema.lua b/kong/plugins/ai-prompt-template/schema.lua index cce3f8be495d..0c3615557c2e 100644 --- a/kong/plugins/ai-prompt-template/schema.lua +++ b/kong/plugins/ai-prompt-template/schema.lua @@ -23,7 +23,6 @@ return { name = "ai-prompt-template", fields = { { protocols = typedefs.protocols_http }, - { consumer = typedefs.no_consumer }, { config = { type = "record", fields = { diff --git a/kong/plugins/ai-proxy/schema.lua b/kong/plugins/ai-proxy/schema.lua index 061925863086..2aa77c566114 100644 --- a/kong/plugins/ai-proxy/schema.lua +++ b/kong/plugins/ai-proxy/schema.lua @@ -23,8 +23,6 @@ return { name = "ai-proxy", fields = { { protocols = typedefs.protocols_http }, - { consumer = typedefs.no_consumer }, - { service = typedefs.no_service }, { config = this_schema }, }, } diff --git a/kong/plugins/ai-response-transformer/schema.lua b/kong/plugins/ai-response-transformer/schema.lua index c4eb6fe25ac1..565d467fe2dc 100644 --- a/kong/plugins/ai-response-transformer/schema.lua +++ b/kong/plugins/ai-response-transformer/schema.lua @@ -7,7 +7,6 @@ return { name = "ai-response-transformer", fields = { { protocols = typedefs.protocols_http }, - { consumer = typedefs.no_consumer }, { config = { type = "record", fields = {