Token optimization and compression for Claude API requests - Tailspin Remix fork
Project description
Tailspin AI
Token optimization and compression for Claude API requests. Reduces token usage while maintaining context quality through intelligent compression, caching, and context management.
Installation
pip install tailspin-ai
Usage
See main Tailspin repository for documentation and examples.
Features
- Smart Compression: Automatic token optimization for text, code, and logs
- Semantic Caching: Cache-aware compression that preserves prefix stability
- LiteLLM Integration: Route requests to any LLM provider via LiteLLM
- Context Management: Intelligent context windowing and summarization
- Compression Pipeline: Extensible transform pipeline for custom compression logic
Configuration
Configure via environment variables or config.py:
litellm_enabled: bool = False
litellm_endpoint: str = ""
litellm_api_key: str = ""
litellm_provider: str = "hosted_vllm"
Contributing
Contributions welcome. See main repository.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tailspin_remix-0.1.0.tar.gz.
File metadata
- Download URL: tailspin_remix-0.1.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
606afac87bc3a7aa960c7ae8e6c9537edcaf917069fca71b6d18248b1dea7d61
|
|
| MD5 |
ea084a643acaeb6ba8f604981400bcb7
|
|
| BLAKE2b-256 |
9bf67123d283e6960474fbcda0ad0faba3f08e3cba07a6b509de920fb9019875
|
File details
Details for the file tailspin_remix-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tailspin_remix-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7f60660575f520796db20d2b608abc2f683b90bd8101ddd9e83cf171c149dc3
|
|
| MD5 |
d13be0362edae7ba731e12a5bc8eba11
|
|
| BLAKE2b-256 |
f4bbb4093651bf145e90acc187d7d02a0a9169abcb3d678d62081f4aa6dc64fb
|