Enable local web MCP for all profiles
This commit is contained in:
1 parent
d86727b231
commit
a9c7a414a0
2 files changed
+16
-2
No files matched your search
@@ -31,6 +31,12 @@ Container-Neustart vollständig verworfen.
|
|||||||
TinySearch und SearXNG sind interne Abhängigkeiten des Web-MCPs und werden
|
TinySearch und SearXNG sind interne Abhängigkeiten des Web-MCPs und werden
|
||||||
nicht direkt als allgemeine Werkzeuge angeboten.
|
nicht direkt als allgemeine Werkzeuge angeboten.
|
||||||
|
|
||||||
|
Die vier Open-WebUI-Profile Fast, Medium, Large und Ultra binden den Server als
|
||||||
|
`server:mcp:web-local` standardmäßig ein. Damit steht die begrenzte lokale
|
||||||
|
Websuche in jedem neuen Chat zur Verfügung, ohne zusätzlich Open WebUIs
|
||||||
|
separate eingebaute Websuche zu aktivieren. Das Modell entscheidet weiterhin,
|
||||||
|
ob eine aktuelle Frage tatsächlich einen Werkzeugaufruf benötigt.
|
||||||
|
|
||||||
## Entscheidungshilfe für das Modell
|
## Entscheidungshilfe für das Modell
|
||||||
|
|
||||||
Die Server- und Werkzeugbeschreibungen grenzen die Zuständigkeiten absichtlich
|
Die Server- und Werkzeugbeschreibungen grenzen die Zuständigkeiten absichtlich
|
||||||
|
|||||||
@@ -71,6 +71,12 @@ filter_ids = [
|
|||||||
"local_performance_metrics",
|
"local_performance_metrics",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Open WebUI addresses a global MCP server as server:mcp:<connection-id>.
|
||||||
|
# Attach only our bounded, read-only web relay to every profile. This is not
|
||||||
|
# the built-in Open WebUI web-search feature and therefore does not create a
|
||||||
|
# second competing search path.
|
||||||
|
default_tool_ids = ["server:mcp:web-local"]
|
||||||
|
|
||||||
def capabilities(vision: bool) -> dict:
|
def capabilities(vision: bool) -> dict:
|
||||||
return {
|
return {
|
||||||
"file_context": True,
|
"file_context": True,
|
||||||
@@ -187,8 +193,10 @@ with con:
|
|||||||
"knowledge": None,
|
"knowledge": None,
|
||||||
"suggestion_prompts": None,
|
"suggestion_prompts": None,
|
||||||
"tags": [{"name": tag} for tag in profile["tags"]],
|
"tags": [{"name": tag} for tag in profile["tags"]],
|
||||||
# Features remain available but are not forced on every request;
|
"toolIds": default_tool_ids,
|
||||||
# this avoids needlessly injecting large tool schemas.
|
# Built-in features remain available but are not forced on every
|
||||||
|
# request. The small, bounded local web MCP above is the only
|
||||||
|
# web-search path attached by default.
|
||||||
"defaultFeatureIds": [],
|
"defaultFeatureIds": [],
|
||||||
"filterIds": filter_ids,
|
"filterIds": filter_ids,
|
||||||
"actionIds": ["quick_actions"],
|
"actionIds": ["quick_actions"],
|
||||||
|
|||||||
Reference in new issue
Block a user