Skip to content

feat: add per-request compression override fields#416

Merged
CLEMENTINATOR merged 7 commits intomainfrom
add-compression-to-request
Mar 9, 2026
Merged

feat: add per-request compression override fields#416
CLEMENTINATOR merged 7 commits intomainfrom
add-compression-to-request

Conversation

@CLEMENTINATOR
Copy link
Member

Summary

  • Add enable_claude_compression and enable_opencode_compression to InputObject
  • Add with_claude_compression() and with_opencode_compression() builder methods

Ref: EDGEE-1185

@CLEMENTINATOR CLEMENTINATOR requested a review from a team as a code owner March 6, 2026 10:15
…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.
@CLEMENTINATOR CLEMENTINATOR force-pushed the add-compression-to-request branch from e669834 to 61f3d67 Compare March 6, 2026 17:05
Copy link
Member

@SachaMorard SachaMorard left a comment

Choose a reason for hiding this comment

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

@CLEMENTINATOR as it's clearly a breaking change, we should publish a new version v2.1.0

@SachaMorard
Copy link
Member

@CLEMENTINATOR you need to update the examples as well

@CLEMENTINATOR CLEMENTINATOR merged commit 24f1e0e into main Mar 9, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants