mirror of
https://github.com/open-webui/pipelines
synced 2025-06-26 18:15:58 +00:00
feat: pipelines function
This commit is contained in:
10
main.py
10
main.py
@@ -49,7 +49,15 @@ def get_all_pipelines():
|
||||
|
||||
if hasattr(pipeline, "type"):
|
||||
if pipeline.type == "manifold":
|
||||
for p in pipeline.pipelines:
|
||||
manifold_pipelines = []
|
||||
|
||||
# Check if pipelines is a function or a list
|
||||
if callable(pipeline.pipelines):
|
||||
manifold_pipelines = pipeline.pipelines()
|
||||
else:
|
||||
manifold_pipelines = pipeline.pipelines
|
||||
|
||||
for p in manifold_pipelines:
|
||||
manifold_pipeline_id = f'{pipeline_id}.{p["id"]}'
|
||||
|
||||
manifold_pipeline_name = p["name"]
|
||||
|
||||
Reference in New Issue
Block a user