mirror of
https://github.com/open-webui/pipelines.git
synced 2026-11-05 01:37:24 +00:00
[GH-ISSUE #493] issue: Usage information is not passed to the Langfuse generation #223
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/pipelines#223
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @highyield3011 on GitHub (Apr 8, 2025).
Original GitHub issue: https://github.com/open-webui/pipelines/issues/493
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Usage information should be passed to Langfuse
Actual Behavior
Usage information is not passed to Langfuse
Steps to Reproduce
Logs & Screenshots
Please also refer to the reply from the author of Langfuse:
https://github.com/langfuse/langfuse/issues/6299
Additional Information
No response
@eanson023 commented on GitHub (Jan 5, 2026):
same issue
@rgaricano commented on GitHub (Jan 5, 2026):
You can try with the updated pipeline, it's on PR https://github.com/open-webui/pipelines/pull/586
For more reference, issue https://github.com/open-webui/pipelines/issues/556
@eanson023 commented on GitHub (Jan 5, 2026):
Thanks for your help! @rgaricano
I'm using the new langfuse filter from https://github.com/rgaricano/pipelines/blob/main/examples/filters/langfuse_v3_filter_pipeline.py
But the token costs are still unrecorded.
@eanson023 commented on GitHub (Jan 5, 2026):
@rgaricano
I guarantee that the 'Usage' box of model capabilities is enabled before the LLM calling.
@rgaricano commented on GitHub (Jan 5, 2026):
@eanson023
you can try upgrading the langfuse client:
pip install -U langfuse(3.10.5 here)@eanson023 commented on GitHub (Jan 5, 2026):
@rgaricano Thanks for your reply. Where should I change this? I installed and updated Langfuse before starting Open-WebUI, but the cost recording still isn't working. Do I need to make changes elsewhere?
@rgaricano commented on GitHub (Jan 5, 2026):
@eanson023
Edit the langfuse pipeline and replace the requirements:
And relaunch the pipelines server.
(I updated the langfuse v3 pipeline with this change)
(another direct way is just run the
pip install -U langfusein the same python env where you are running the pipelines serveror edit the pipelines/requirements.txt to force this langfuse client version, changing
langfusebylangfuse>=3.10.5& relaunch the pipeline server, runningstart.shorstart.batagain )@rgaricano commented on GitHub (Jan 5, 2026):
@eanson023
Also you can take a look to the @YetheSamartaka open-webui function (instead of use pipelines for that): https://github.com/open-webui/pipelines/pull/586#issuecomment-3710024202
@eanson023 commented on GitHub (Jan 5, 2026):
I'll take a look at it tomorrow, thanks for the reply @rgaricano
@vinh900 commented on GitHub (Jan 7, 2026):
Vào 19:42 T.2, 5 Th1, 2026 eanson @.***> đã viết: