Skip to content

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

@jslevacque

Description

@jslevacque

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
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions