mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-21 09:01:47 -05:00
[GH-ISSUE #12324] feat: system prompt for tools #71159
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?
Originally created by @skyer9 on GitHub (Apr 2, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12324
Check Existing Issues
Problem Description
Model does not recognize existing tools.
i configured secure-filesystem-server - v0.2.0 with MCPO.
I : show file list in /mnt/d/gitrepo
MODEL : I'm sorry, but I don't have access to the contents of /mnt/d/gitrepo on your system. If you provide more details or if there's a specific file list you're looking for, I can try to assist you further.
출처
tool_endpoint_list_directory_post
내용
[
"[DIR] ...... open-webui\n[DIR] openapi-servers\n[DIR] qwen2.5-coder-14b-instruct-q4_k_m\n[DIR] searxng-docker"
]
Desired Solution you'd like
We need system prompt something like
and {tools} should be replaced with tool list info.
Alternatives Considered
No response
Additional Context
No response
@rminchev1 commented on GitHub (Apr 2, 2025):
Yeah, can share the same experience as well
@aaronnewsome commented on GitHub (Apr 7, 2025):
Does anyone have examples of how to successfully use the fileserver tool? I have it setup correctly I believe. The directories are explicitly allowed in the tool config. However, any Ollama model that I try in Open-Webui has disastrous results. For example, I ask ask for a list of the contents at a path. I get:
and if I click the tool link below the response, I see:
So the tool is clearly working, the tool link below the response shows the directories at the path, but the model says it can't interact with local file systems directly. I've tried asking the questions a bunch of different ways and it's been a bit hit or miss. Mostly miss. Even in the few questions where I was able to get the filesystem tool to respond correctly, follow-up chats have been nothing but failure.
Using the test endpoints in the mcpo /docs to manually construct and submit the requests all seem to work as expected.
I'm looking for some example of how you all are doing anything useful with the filesystem tool, served up by mcpo with Open-webui. What model are you using? Did you create your own system prompt to interact with the filesystem tool and have useful interaction?
@FooleanBool commented on GitHub (Apr 7, 2025):
Have you seen the native tool calling page?
This is from running the updated filesystem server:
@aaronnewsome commented on GitHub (Apr 7, 2025):
Thanks for the tip. Yes, I've seen that native tool calling page. They recommend GPT-4o model, or one that has native tool calling capability, but don't mention any that do. I've set the Function Calling to Native and it does work better for some models but they get tripped up easily when more than 1 tool is enabled, using the wrong tool for the request in the prompt.
I think I'll go back to life as it was before I went down the tools rabbit hole, where things made sense.
I appreciate your help though.
@rminchev1 commented on GitHub (Apr 8, 2025):
I got it working : OWUI : v0.6.2, however w/ gpt-4.5-preview, mistral:latest failing to call the tool, the experience is far beyond great but one can get the sense what's that about, check it out: