A LiteLLM plugin for intelligent model routing and request tracking with Kloom
Project description
kloom-litellm
A LiteLLM plugin for intelligent model routing and request tracking with Kloom.
Features
- Intelligent Model Routing (LiteLLM Proxy): Automatically select the best model based on cost, performance, and availability
- Request Tracking (SDK & Proxy): Log all LLM requests and responses for analytics and monitoring
- Seamless Integration: Works with any LiteLLM-supported model provider
Quick Start
Installation
pip install kloom-litellm
Basic Usage (Request Tracking)
import litellm
from kloom_litellm import KloomPlugin
# Initialize the plugin
kloom_logger = KloomPlugin()
litellm.callbacks = [kloom_logger]
# Use LiteLLM as normal - requests will automatically be tracked
response = litellm.completion(
model="gpt-5",
messages=[{"role": "user", "content": "Hello!"}]
)
Documentation
For complete documentation, including:
- LiteLLM Proxy setup for model routing
- Configuration options
- Advanced usage examples
- Troubleshooting
Visit: https://docs.kloom.ai/quickstart/litellm
Development
Installation from Source
uv sync
License
See LICENSE file.
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 kloom_litellm-0.0.1.post1.tar.gz.
File metadata
- Download URL: kloom_litellm-0.0.1.post1.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49dcded019d4784ce96e3062b0f2cbbf8c0c4beaaf040a0f5ae79a4bbedf3a5d
|
|
| MD5 |
a26af7c301e3f2d7b98b23730aef6cd6
|
|
| BLAKE2b-256 |
ecc56c28ff20ac9105c4784647630b910dd3057a90caad87c7fd1570e7bd3f67
|
File details
Details for the file kloom_litellm-0.0.1.post1-py3-none-any.whl.
File metadata
- Download URL: kloom_litellm-0.0.1.post1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd7ddf2956b1a8de1694be3e923497fc28c4cddfff396cbe27536373e7d22707
|
|
| MD5 |
9d2293d133a2104deed34f0f6f3263c3
|
|
| BLAKE2b-256 |
562588070bf1bd8e90d0b7bf01f90fc005ecedd8c309f98d3c1d607575986cc0
|