Skip to content

Commit

Permalink
Update handler.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineJac authored Mar 14, 2024
1 parent 8031231 commit a1798fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kong/plugins/ai-response-transformer/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ function _M:access(conf)
res_body = kong_utils.inflate_gzip(res_body)
end

if kong.ctx.shared.ai_request then
kong.ctx.shared.parsed_response = res_body
end
-- pass res body for analytics
kong.ctx.shared.parsed_response = res_body

-- if asked, introspect the request before proxying
kong.log.debug("introspecting response with LLM")
Expand Down

0 comments on commit a1798fc

Please sign in to comment.