mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #14558] [CLOSED] Feat: models are aware of attached files when they choose a tool to call #39132
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/14558
Author: @zzzevaka
Created: 5/31/2025
Status: ❌ Closed
Base:
dev← Head:feat/tools-files-context📝 Commits (1)
833cf51Feat: models are aware of attached files when they choose a tool to call📊 Changes
3 files changed (+44 additions, -33 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -1)📝
backend/open_webui/utils/middleware.py(+36 -31)📝
backend/open_webui/utils/task.py(+2 -1)📄 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
Currently, when a model is called to select a tool, the prompt does not contain any information about the attached files. Thus, the model cannot select the correct tool if the tool implies operations with files. This has been fixed by adding files to the context.
Added
Screenshots or Videos
Before:

After:

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.