-
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
fix(ai-proxy): disable gzip for SSE streams #13506
Conversation
else | ||
kong.response.clear_header("Content-Encoding") | ||
|
||
if accept_gzip() then |
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.
or use elseif here?
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.
That would be slightly not equivalent to what's happening here. The last "else" would always happen. Instead it seems we only want kong.response.clear_header("Content-Encoding")
to happen if llm_state.is_streaming_mode()
is false (and not when it is non-falsy but accept_gzip is true)
Successfully created cherry-pick PR for |
Successfully created backport PR for |
Regression from #13155