feat: add per-request compression override fields#416
Merged
CLEMENTINATOR merged 7 commits intomainfrom Mar 9, 2026
Merged
Conversation
…ields Add per-request compression override fields to InputObject with builder methods with_claude_compression() and with_opencode_compression(). Ref: EDGEE-1185
Rework compression fields per gateway review: - Add compression_model, compression_semantic_preservation_threshold - Deprecate enable_compression, with_compression - Remove enable_claude_compression / enable_opencode_compression - Add with_compression_model, with_compression_semantic_preservation_threshold Ref: EDGEE-1185
These fields have been replaced by the compression_model approach. Updated ParsedInput and request body building accordingly.
…old with compression_configuration object
e669834 to
61f3d67
Compare
SachaMorard
approved these changes
Mar 6, 2026
Member
SachaMorard
left a comment
There was a problem hiding this comment.
@CLEMENTINATOR as it's clearly a breaking change, we should publish a new version v2.1.0
Member
|
@CLEMENTINATOR you need to update the examples as well |
SachaMorard
approved these changes
Mar 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
enable_claude_compressionandenable_opencode_compressiontoInputObjectwith_claude_compression()andwith_opencode_compression()builder methodsRef: EDGEE-1185