mirror of
https://github.com/open-webui/pipelines
synced 2025-05-13 17:10:45 +00:00
fix: filter
This commit is contained in:
parent
8754d9dab2
commit
95ed193ef7
6
main.py
6
main.py
@ -229,7 +229,11 @@ async def get_models():
|
|||||||
"type": pipeline["type"],
|
"type": pipeline["type"],
|
||||||
**(
|
**(
|
||||||
{
|
{
|
||||||
"pipelines": pipeline.get("pipelines", []),
|
"pipelines": (
|
||||||
|
pipeline["valves"].pipelines
|
||||||
|
if pipeline.get("valves", None)
|
||||||
|
else []
|
||||||
|
),
|
||||||
"priority": pipeline.get("priority", 0),
|
"priority": pipeline.get("priority", 0),
|
||||||
}
|
}
|
||||||
if pipeline.get("type", "pipe") == "filter"
|
if pipeline.get("type", "pipe") == "filter"
|
||||||
|
Loading…
Reference in New Issue
Block a user