mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #3718] enh: Allow functions/pipelines to access interact with tools natively #13360
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 @michaelpoluektov on GitHub (Jul 8, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3718
Is your feature request related to a problem? Please describe.
Right now we're limited to either implement tool calling within a function/pipeline directly, or using the default function calling pipeline.
Describe the solution you'd like
For a function/pipeline, add an optional attribute called "prepend_tools" that decides if the tools are called and appended to the system prompt before responding.
Add an optional parameter to pipe(), called, say,
__tool_signatures__and__tool_callables__(or simply__tools__: dict) with__tools__["signatures"]and__tools__["callables"]pointing to signatures (in OpenAI JSON format) and and callables respectively@michaelpoluektov commented on GitHub (Aug 19, 2024):
Draft implementation
https://github.com/open-webui/open-webui/pull/4724