Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
BerriAI
/
litellm
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
11.7k
Star
59.4k
Code
Issues
1.7k
Pull requests
3.5k
Discussions
Actions
Projects
Security and quality
14
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
feat: add litellm.compress() — BM25-based prompt compression with retrieval tool
- #25637
#25637
Merged
krrish-berri-2
merged 11 commits into
litellm_dev_04_13_2026_p1
BerriAI/litellm:litellm_dev_04_13_2026_p1
from
claude/zealous-black
BerriAI/litellm:claude/zealous-black
Copy head branch name to clipboard
Apr 13, 2026
Conversation
Commits
11
(11)
Checks
Files changed
Merged
feat: add litellm.compress() — BM25-based prompt compression with retrieval tool
#25637
krrish-berri-2
merged 11 commits into
litellm_dev_04_13_2026_p1
BerriAI/litellm:litellm_dev_04_13_2026_p1
from
claude/zealous-black
BerriAI/litellm:claude/zealous-black
Copy head branch name to clipboard
Commits
Commits on Apr 13, 2026
feat: add litellm.compress() for BM25-based context compression
Show description for 051ad73
krrish-berri-2
and
claude
committed
051ad73
View commit details
Copy full SHA for 051ad73
Browse repository at this point
fix(compress): truncate high-scoring messages instead of fully stubbing them
Show description for 5c06474
krrish-berri-2
and
claude
committed
5c06474
View commit details
Copy full SHA for 5c06474
Browse repository at this point
fix(bm25): add prefix expansion so query terms match inflected doc tokens
Show description for f40aa6a
krrish-berri-2
and
claude
committed
f40aa6a
View commit details
Copy full SHA for f40aa6a
Browse repository at this point
test: add routing correctness test and eval harness for litellm.compress()
Show description for c3a3de8
krrish-berri-2
and
claude
committed
c3a3de8
View commit details
Copy full SHA for c3a3de8
Browse repository at this point
feat(eval): add SWE-bench Lite compression eval harness
Show description for 54c2dc6
krrish-berri-2
and
claude
committed
54c2dc6
View commit details
Copy full SHA for 54c2dc6
Browse repository at this point
fix(eval): robust dataset loading + sys.path fix for worktree imports
Show description for 3ae571a
krrish-berri-2
and
claude
committed
3ae571a
View commit details
Copy full SHA for 3ae571a
Browse repository at this point
improve compression quality: line-based truncation, multi-message budget, 70% default target
Show description for 6fae702
krrish-berri-2
and
claude
committed
6fae702
View commit details
Copy full SHA for 6fae702
Browse repository at this point
docs: add SWE-bench performance results to compress() docs
Show description for b0e4d9c
krrish-berri-2
and
claude
committed
b0e4d9c
View commit details
Copy full SHA for b0e4d9c
Browse repository at this point
fix(eval): use tolerance-based hunk overlap metric
Show description for 6d96ce8
krrish-berri-2
and
claude
committed
6d96ce8
View commit details
Copy full SHA for 6d96ce8
Browse repository at this point
feat: add compression_interception callback for LiteLLM Proxy
Show description for 72bd5cb
krrish-berri-2
and
claude
committed
72bd5cb
View commit details
Copy full SHA for 72bd5cb
Browse repository at this point
Revert "feat: add compression_interception callback for LiteLLM Proxy"
Show description for 6e22974
krrish-berri-2
committed
6e22974
View commit details
Copy full SHA for 6e22974
Browse repository at this point
You can’t perform that action at this time.