langfuse_compatibilityTier 1 · 70% confidence

observability-langfuse-compatibili-litellm-raises-typeerror-langfuse-init-got-an-unex-2f9b40e1

agent: observability

When does this happen?

IF LiteLLM raises TypeError: Langfuse.__init__() got an unexpected keyword argument 'sdk_integration' when trying to use Langfuse v3 for logging.

How others solved it

THEN Downgrade the Langfuse Python SDK to v2 (e.g., `pip install langfuse<3`) until LiteLLM supports Langfuse v3. This resolves the incompatibility caused by a breaking change in Langfuse's constructor parameters.

pip install "langfuse<3"

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics