Documentation Index
Fetch the complete documentation index at: https://laminar.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
LiteLLM is a framework/library for building LLM applications that simplifies accessing many models across different providers.
Default configuration
Ensure you have the latest version of Laminar
Initialize Laminar
Laminar auto-instruments LiteLLM. No callback is required.import litellm
from lmnr import Laminar
Laminar.initialize(project_api_key="LMNR_PROJECT_API_KEY")
LaminarLiteLLMCallback is deprecated and does nothing. Remove it if you already use it.
Run your code and see traces in Laminar
Example code:import litellm
from lmnr import Laminar
Laminar.initialize(project_api_key="LMNR_PROJECT_API_KEY")
response = litellm.completion(
model="gpt-4.1-nano",
messages=[
{"role": "user", "content": "What is the capital of France?"}
],
)