Skip to main content
Resources3 min readUpdated July 2026

Migration Guide (v0.1.x to v0.2.x)

Upgrading breaking API changes, parameter updates, and new features.

Breaking API Changes in v0.2.0

Update your legacy imports and function calls:
migration.py
# Legacy v0.1.0 call
# text, ratio = compress_text(prompt, ratio=0.5)

# Modern v0.2.0 call
from llmslim import compress

result = compress(prompt, target_ratio=0.5)
compressed_text = result.compressed_text

Frequently Asked Questions

Are there breaking changes between v0.1.0 and v0.2.0?

The parameter 'ratio' was renamed to 'target_ratio' for clarity, and compress() now returns a CompressionResult dataclass object instead of a raw tuple.