From e770b4bd6f92b5282831cf93fcf994fa57cbc8d3 Mon Sep 17 00:00:00 2001 From: Jack Tysoe Date: Thu, 2 May 2024 14:49:53 +0100 Subject: [PATCH] fix(ai-proxy): store body string in case of regression --- kong/llm/drivers/shared.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kong/llm/drivers/shared.lua b/kong/llm/drivers/shared.lua index 57a923145f35..0b9cdcf3ab35 100644 --- a/kong/llm/drivers/shared.lua +++ b/kong/llm/drivers/shared.lua @@ -518,6 +518,9 @@ function _M.post_request(conf, response_object) end -- Update context with changed values + request_analytics_plugin[log_entry_keys.PAYLOAD_CONTAINER] = { + [log_entry_keys.RESPONSE_BODY] = body_string, + } request_analytics[plugin_name] = request_analytics_plugin kong.ctx.shared.analytics = request_analytics