Replies: 1 comment 2 replies
|
To integrate LiteLLM with Langfuse when deploying via Helm, you’ll need to set up the integration at the application level and configure the required environment variables in your Helm deployment. There are three supported integration methods: using the LiteLLM Proxy with the Langfuse OpenAI SDK Wrapper (preferred), sending logs from the LiteLLM Proxy to Langfuse, or using the LiteLLM Python SDK to send logs directly to Langfuse. The preferred method captures token counts, latencies, streaming response times, and API errors automatically (docs). For any of these methods, you must set the Example: env:
LANGFUSE_PUBLIC_KEY: "<your-public-key>"
LANGFUSE_SECRET_KEY: "<your-secret-key>"If you’re using the LiteLLM Proxy, you can enable logging to Langfuse in the LiteLLM UI or set up the callback in your LiteLLM configuration. For the Python SDK, ensure you’re using Langfuse Python SDK v2, as v3 is not compatible with LiteLLM (docs). You’ll need to customize your Helm deployment to include these environment variables and ensure your LiteLLM service is configured to communicate with Langfuse. There’s no official Helm chart for LiteLLM integration, so these changes are user-managed in your deployment process (self-hosting guide). For more details and code examples, see the Langfuse LiteLLM integration docs and the LiteLLM Proxy logging guide. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
Hi Team,
I'm using Helmchart to deploy Langfuse , , can someone help on how to integrate existing Litellm into Langfuse ?
Thank you
All reactions