mirror of
https://github.com/open-webui/pipelines.git
synced 2026-07-19 05:08:45 -04:00
[PR #403] [CLOSED] Proper chat_id lookup #407
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/403
Author: @M4g3dd0
Created: 1/23/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (3)
f53d029Proper chat_id lookupff21d98Update langfuse_filter_pipeline.py78d496cCreate langfuse_filter_pipeline_test.py📊 Changes
2 files changed (+195 additions, -17 deletions)
View changed files
📝
examples/filters/langfuse_filter_pipeline.py(+25 -17)➕
examples/filters/langfuse_filter_pipeline_test.py(+170 -0)📄 Description
"chat_id" is nested under "metadata", in gpt4 models, I assume, it can be under "metadata"{"task_body"}. I did not encounter "chat_id" directly in body yet, so I have added checks for it in those three places. And added generation of "chat_id" in case it is missing. And it is missing always, if you try to use openwebui api for model interaction.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.