Skip to content
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

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Conversation

fffonion
Copy link
Contributor

Regression from #13155

else
kong.response.clear_header("Content-Encoding")

if accept_gzip() then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or use elseif here?

Copy link
Member

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)

@kikito kikito merged commit e5ddb1d into master Aug 20, 2024
41 of 43 checks passed
@kikito kikito deleted the fix-gzip-stream-aip branch August 20, 2024 14:04
@team-gateway-bot
Copy link
Collaborator

Successfully created cherry-pick PR for master:

@team-gateway-bot
Copy link
Collaborator

Successfully created backport PR for release/3.8.x:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants