Getting error when running Langfuse filter ("'Langfuse' object has no attribute 'trace'") #246

Open
opened 2026-02-15 19:17:20 -05:00 by yindo · 1 comment
Owner

Originally created by @jslevacque on GitHub (Jul 9, 2025).

Hello,

Since this week, Langfuse has been updated to version 3.

When I was running the filter function from https://github.com/open-webui/pipelines/blob/main/examples/filters/langfuse_filter_pipeline.py in my open webui I've got error:

(500, "'Langfuse' object has no attribute 'trace'")

To solve the problem I suggest to fix the langfuse version in the script as instructed in the Langfuse doc: https://langfuse.com/docs/sdk/python/low-level-sdk
In the documentation:

%pip install "langfuse<3.0.0"

In the langfuse filter script:

"""
title: Langfuse Filter Pipeline
author: open-webui
date: 2025-06-16
version: 1.7
license: MIT
description: A filter pipeline that uses Langfuse.
requirements: langfuse<3.0.0
"""
Originally created by @jslevacque on GitHub (Jul 9, 2025). Hello, Since this week, Langfuse has been updated to version 3. When I was running the filter function from https://github.com/open-webui/pipelines/blob/main/examples/filters/langfuse_filter_pipeline.py in my open webui I've got error: ``` (500, "'Langfuse' object has no attribute 'trace'") ``` To solve the problem I suggest to fix the langfuse version in the script as instructed in the Langfuse doc: https://langfuse.com/docs/sdk/python/low-level-sdk In the documentation: ``` %pip install "langfuse<3.0.0" ``` In the langfuse filter script: ```python """ title: Langfuse Filter Pipeline author: open-webui date: 2025-06-16 version: 1.7 license: MIT description: A filter pipeline that uses Langfuse. requirements: langfuse<3.0.0 """ ```
Author
Owner

@zolgear commented on GitHub (Jul 15, 2025):

Confirmed that updating langfuse_filter_pipeline.py to 1.7.1 resolves the error.
https://github.com/open-webui/pipelines/blob/main/examples/filters/langfuse_filter_pipeline.py

I think this issue can be closed.

@zolgear commented on GitHub (Jul 15, 2025): Confirmed that updating `langfuse_filter_pipeline.py` to 1.7.1 resolves the error. https://github.com/open-webui/pipelines/blob/main/examples/filters/langfuse_filter_pipeline.py I think this issue can be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/pipelines#246