Skip to main content

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-3.5-turbo",
    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

From Source

uv sync

License

See LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kloom_litellm-0.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kloom_litellm-0.0.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file kloom_litellm-0.0.1.tar.gz.

File metadata

  • Download URL: kloom_litellm-0.0.1.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

Hashes for kloom_litellm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9631079f35ec35db4f34b49177c604aeff7fbc6cd7c63d67e26da4c12c7075c1
MD5 26256a7b25c70e46bc632cc47982c634
BLAKE2b-256 4bb910f21d4fb0f59f2909e5c1d37d995c59e91f4135f37ac6ea12d6f1c4dc2c

See more details on using hashes here.

File details

Details for the file kloom_litellm-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kloom_litellm-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for kloom_litellm-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5702c7e976a119f2d1430909533bc701cd3c370e5b4bd2939e37d2e3152b620
MD5 bf9240536d1ef5521e8f049b26b987ff
BLAKE2b-256 7486200c598e6a70ce211064d9158f8f524a4694009d8d98d66fc4ae8a114480

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page