mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #6665] [CLOSED] fix: Passing chat metadata to Pipe functions as an extra param #109243
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/open-webui/pull/6665
Author: @DmitriyAlergant
Created: 11/3/2024
Status: ❌ Closed
Base:
dev← Head:metadata_to_pipe_functions📝 Commits (1)
6166559Passing chat metadata to Pipe functions (as extra param if they want it)📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
backend/open_webui/apps/webui/main.py(+1 -0)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
Description
Added a capability to pass the "metadata" object (chat_id, message_id, session_id, tools) to Pipe functions as an extra param if it wants to accept it. Metadata can be useful to functions for logging purposes. Without this change, chat metadata is not available to Pipe functions.
Added
Changed
Passing "metadata" dict to Pipe functions as an optional extra param, if the pipe() function signature has it.
Previously, this param was not passed and was not available to Pipe functions.
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Not sure if this should be considered a FEAT? Seems too small of a change for a feature. And it is clearly backwards compatible.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.