-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(ai-proxy) clean up code and fix gzip response #13155
Conversation
5db01c5
to
5feeb6c
Compare
…r API To make typo more obvious to be catched
end | ||
|
||
function _M.should_disable_ai_proxy_response_transform() | ||
return kong.ctx.shared.llm_disable_ai_proxy_response_transform == true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a tiny suggestion: we can just return kong.ctx.shared.llm_disable_ai_proxy_response_transform
since we ensure it is a bool itself by a dedicated function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, we can fix in the next round of refactor.
Cherry-pick failed for Please cherry-pick the changes locally. git remote add upstream https://github.com/kong/kong-ee
git fetch upstream master
git worktree add -d .worktree/cherry-pick-13155-to-master-to-upstream upstream/master
cd .worktree/cherry-pick-13155-to-master-to-upstream
git checkout -b cherry-pick-13155-to-master-to-upstream
ancref=$(git merge-base c882de932965a21d89100b1f1c1421b627460c4a a69eebff9ee61046c5f5d41d11813f3c9f390757)
git cherry-pick -x $ancref..a69eebff9ee61046c5f5d41d11813f3c9f390757 |
Missing from #13155 Co-authored-by: Xumin <[email protected]>
Summary
Accept-Encoding
that accepts gzipChecklist
CHANGELOG/unreleased/kong
or addingskip-changelog
label on PR if unnecessary. README.mdIssue reference
AG-39