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 13, 2024
1 parent c6d8a16 commit f31b4b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kong/plugins/ai-response-transformer/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ 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

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

Expand Down

0 comments on commit f31b4b3

Please sign in to comment.