mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 07:24:59 -05:00
enh: Functions/Tools & Valves additional gimmicks #2104
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 @damajor on GitHub (Sep 17, 2024).
Functions & Tools:
on_valves_updated(like on pipelines, should be only a 2 lines patch)icon_urlcompatible with light & dark themes at the same time, please addicon_url_dark(any other alternatives that enable a way to have compatible colored icons on dark & light themes are also welcome)Valves:
@thiswillbeyourgithub commented on GitHub (Feb 16, 2025):
Additionaly: it would be nice if modifying the valves of a tool made it reload in a way that allows setting the tool description dynamically. My use case was that I'm creating a tool to add anki cards (=spaced repetition flashcard) and the llm needs to know the card text fields to specify when writing its tool call. I finally made it work using a @property setter that calls a function that updates the docstring which, rather confusingly, worked only when my placeholder was in the beginning of the docstring and not when it was in the
:paramline because of the way the docstring gets parsed. So if updating the param could be done too that would help, as that behavior seems undocumented.@Rain6435 commented on GitHub (Aug 10, 2025):
Hey, this has been applied as per my PR. Take a look.