Skip to content

Commit

Permalink
Update handler.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineJac authored Aug 23, 2024
1 parent 846f222 commit 1d592c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kong/llm/proxy/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ local cjson = require("cjson.safe")
local kong_utils = require("kong.tools.gzip")
local buffer = require "string.buffer"
local strip = require("kong.tools.utils").strip
local cycle_aware_deep_copy = require("kong.tools.table").cycle_aware_deep_copy


local EMPTY = require("kong.tools.table").EMPTY
Expand Down Expand Up @@ -346,7 +347,7 @@ function _M:access(conf)
end

request_table = kong.request.get_body(content_type, nil, conf.max_request_body_size)
llm_state.set_request_body_table(request_table)
llm_state.set_request_body_table(cycle_aware_deep_copy(request_table))
end

if not request_table then
Expand Down

0 comments on commit 1d592c3

Please sign in to comment.