mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
- Fix 34 mypy errors across 17 files with type annotations and casts - Add type: ignore comments for legitimate dynamic patterns - Handle None operands with (value or 0) pattern - Cast return values to proper types (int, float, str, bool) - Add EstimatingTokenCounter imports where needed - Use getattr() for potentially missing attributes - Fix flaky test_paraphrase_match with more distinct semantic examples - Add mlx to mypy ignore list (broken third-party stubs) |
||
|---|---|---|
| .. | ||
| api.md | ||
| ARCHITECTURE.md | ||
| getting-started.md | ||
| proxy.md | ||
| quickstart.md | ||
| README.md | ||
| transforms.md | ||
| troubleshooting.md | ||
Headroom Documentation
Welcome to the Headroom documentation.
Quick Links
Overview
Headroom is the Context Optimization Layer for LLM applications. It reduces your LLM costs by 50-90% through intelligent context compression.
Core Concepts
- Transforms: Stateless functions that modify message arrays to reduce tokens
- Providers: Adapters for different LLM providers (OpenAI, Anthropic, etc.)
- Pipeline: Chains multiple transforms together
- Proxy: HTTP server that applies transforms transparently
Getting Help
- GitHub Issues - Bug reports
- GitHub Discussions - Questions
- Discord - Community chat