llmlingua breaking changes
llmlingua 0.2.0 (March 13, 2024) is its newest release with breaking changes, 5 of them. The first: Signature changed llmlingua.PromptCompressor.compress_prompt. Every breaking API change we have recorded in llmlingua on PyPI: 5 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.2.2, released April 9, 2024.
Packages on PyPI run on Python. Python end of life dates.
llmlingua 0.2.0 breaking changes
- Signature changed
llmlingua.PromptCompressor.compress_prompt
Was def compress_prompt(self, context: List[str], instruction: str = '', question: str = '', ratio: float = 0.5, target_token: float = -1, iterative_size: int = 200, force_context_ids: List[int] = None, force_context_number: int = None... pypi.org - Signature changed
llmlingua.PromptCompressor.control_context_budget
Was def control_context_budget(self, context: List[str], context_tokens_length: List[int], target_token: float, force_context_ids: List[int] = None, force_context_number: int = None, question: str = '', condition_in_question: str = 'none'... pypi.org - Signature changed
llmlingua.PromptCompressor.control_sentence_budget
Was def control_sentence_budget(self, context: List[str], target_token: float, keep_first_sentence: int = 0, keep_last_sentence: int = 0, keep_sentence_number: int = 0, high_priority_bonus: int = 100, token_budget_ratio: float = 1.4... pypi.org - Signature changed
llmlingua.PromptCompressor.get_dynamic_compression_ratio
Was def get_dynamic_compression_ratio(self, context: list, target_token: float, iterative_size: int, dynamic_ratio: list, start: int); now def get_dynamic_compression_ratio(self, context: list, target_token: float, iterative_size: int... pypi.org - Signature changed
llmlingua.PromptCompressor.iterative_compress_prompt
Was def iterative_compress_prompt(self, context: List[str], target_token: float, iterative_size: int = 200, keep_split: bool = False, split_token_id: int = 13, start: int = 0, dynamic_ratio: list = None, condition_compare: bool = False)... pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.