mirror of
https://github.com/open-webui/pipelines.git
synced 2026-07-01 20:44:00 -04:00
[PR #249] [MERGED] feat: track user.email in langfuse filter pipeline and remove wrong token count #356
Reference in New Issue
Block a user
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/pipelines/pull/249
Author: @marcklingen
Created: 9/6/2024
Status: ✅ Merged
Merged: 9/9/2024
Merged by: @tjbck
Base:
main← Head:feat-user-email-in-langfuse-filter-pipeline📝 Commits (1)
4d53b80feat: track user.email in langfuse filter pipeline and remove wrong token count📊 Changes
1 file changed (+3 additions, -7 deletions)
View changed files
📝
examples/filters/langfuse_filter_pipeline.py(+3 -7)📄 Description
This change logs the user.email to langfuse as user_id. This makes langfuse much more useful as it allows to easily map usage to a certain person with the organization using openwebui.
Also I removed the logging of characters to Langfuse as this is wrong for almost all models. I'd love to add token tracking but were not able to figure out were openwebui tracks token counts. I'll create an issue for this on the main repo.
cc @samuelpetermoshi who suggested this
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.