[PR #403] [CLOSED] Proper chat_id lookup #407

Closed
opened 2026-02-15 20:15:27 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/pipelines/pull/403
Author: @M4g3dd0
Created: 1/23/2025
Status: Closed

Base: mainHead: main


📝 Commits (3)

  • f53d029 Proper chat_id lookup
  • ff21d98 Update langfuse_filter_pipeline.py
  • 78d496c Create 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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/pipelines/pull/403 **Author:** [@M4g3dd0](https://github.com/M4g3dd0) **Created:** 1/23/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`f53d029`](https://github.com/open-webui/pipelines/commit/f53d029eb9c1795efb4d1ce9806b91e07b6f5682) Proper chat_id lookup - [`ff21d98`](https://github.com/open-webui/pipelines/commit/ff21d9871de82855371bd9957daa3e0f4e8c640f) Update langfuse_filter_pipeline.py - [`78d496c`](https://github.com/open-webui/pipelines/commit/78d496c8bb77955c3fa202bcfff7ded828ef3437) Create langfuse_filter_pipeline_test.py ### 📊 Changes **2 files changed** (+195 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `examples/filters/langfuse_filter_pipeline.py` (+25 -17) ➕ `examples/filters/langfuse_filter_pipeline_test.py` (+170 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:27 -05:00
yindo closed this issue 2026-02-15 20:15:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/pipelines#407