LiteLLM
Trace your LiteLLM applications by patching LiteLLM with Braintrust's wrapper.
LiteLLM is a unified interface for calling 100+ LLM APIs using the OpenAI format, supporting providers like OpenAI, Azure, Anthropic, Cohere, Replicate, and more.
Installation
uv add braintrust litellmUsage
This will automatically send all LiteLLM interactions to Braintrust, including:
- Model calls across different providers
- Request and response data
- Token usage and costs
- Latency metrics
- Error tracking
Learn More
- LiteLLM Documentation
- DSPy Integration - Uses LiteLLM tracing plus DSPy-specific callbacks