Skip to content

Commit

Permalink
fix(ai-proxy): store body string in case of regression
Browse files Browse the repository at this point in the history
  • Loading branch information
tysoekong committed May 2, 2024
1 parent 6ed62ce commit e770b4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kong/llm/drivers/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e770b4b

Please sign in to comment.