fix: filter

This commit is contained in:
Timothy J. Baek 2024-05-30 01:01:48 -07:00
parent 8754d9dab2
commit 95ed193ef7

View File

@ -229,7 +229,11 @@ async def get_models():
"type": pipeline["type"],
**(
{
"pipelines": pipeline.get("pipelines", []),
"pipelines": (
pipeline["valves"].pipelines
if pipeline.get("valves", None)
else []
),
"priority": pipeline.get("priority", 0),
}
if pipeline.get("type", "pipe") == "filter"