LiteLLM
LiteLLM Integration with Callbacks
Connect Helicone with LiteLLM using callbacks to log and monitor API calls across various AI models.
LiteLLM is a model I/O library to standardize API calls to Azure, Anthropic, OpenAI, etc. Hereโs how you can log your LLM API calls to Helicone from LiteLLM using callbacks.
Note: Custom
Properties
are available in metadata
starting with LiteLLM version 1.41.23
.
1 line integration
Add HELICONE_API_KEY
to your environment variables.
Tell LiteLLM you want to log your data to Helicone
Complete code
Feel free to check it out and tell us what you think ๐
For proxy-based integration with LiteLLM, see our LiteLLM Proxy Integration guide.
Was this page helpful?