mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #13921] [CLOSED] feat: remove tool output from tags/title generation #23331
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/13921
Author: @mMabeck
Created: 5/15/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (2)
b81fb52feat: Add filter_out_details function to clean message content in templatesf47aff9style: whitespace📊 Changes
1 file changed (+15 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/task.py(+15 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Before, tool outputs were added to the prompt in the chat history, resulting in unnecessarily large prompts.
Since the content relevant for title/tag creation should already be in the actual assistant response, we filter out the tool output, using the
<details></details>tags.Added
filter_out_detailsfunction to clean the messages list.Changed
Additional Information
I don't know much about the other templates or if this also should be added to them.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.