mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[GH-ISSUE #17348] feat: How does the button icon of the filter function turn blue when activated #33778
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 @zhizinan1997 on GitHub (Sep 11, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17348
Check Existing Issues
Problem Description
How does the button icon of the filter function turn blue when activated, and how are the buttons arranged in order when multiple function buttons are added to the same large model
Desired Solution you'd like
Add a separate blue icon or enable automatic operation for the activation status of filter functions. For the issue of multiple functions in sequence, it is recommended to introduce a manual sorting function similar to the model list in the function list, so that the button order in the chat interface can be arranged according to the list order
Alternatives Considered
No response
Additional Context
No response
@liuuuu-pro commented on GitHub (Sep 11, 2025):
@zhizinan1997 commented on GitHub (Sep 11, 2025):
在函数中创建一个过滤器函数,代码如下:
`from pydantic import BaseModel, Field
from typing import Optional
class Filter:
class Valves(BaseModel):
priority: int = Field(default=100, description="优先级")
`
gemini-2.5-flash-image写你模型列表中的名字就好了。然后在过滤器函数中打开这个函数,最后在模型设置中勾选gemini 下面这个绘图的过滤器函数就可以了。
@liuuuu-pro commented on GitHub (Sep 11, 2025):
哇厉害了,感谢感谢。