mirror of
https://github.com/open-webui/pipelines.git
synced 2026-07-01 20:44:00 -04:00
POST /pipeline.{id}/filter/inlet not found #249
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 @ennioferreirab on GitHub (Jul 28, 2025).
I don’t know what’s going on. Even with a simple example, the pipeline API is adding the prefix “pipeline.” before the endpoint and returning a 404 Not Found error. What am I missing? Testing Swagger endpoint /inlet_events_pipeline/filter/inlet It works when put the right name "inlet_events_pipeline" .
INFO: 172.18.0.3:49672 - "POST /pipeline.inlet_events_pipeline/filter/inlet HTTP/1.1" 404 Not Found
@fight-pig commented on GitHub (Aug 4, 2025):
The error you encountered is likely due to a version mismatch between the Open WebUI and Pipelines. Specifically, in the code in pipelines/main.py:
@app.post("/v1/{pipeline_id}/filter/inlet")
@app.post("/{pipeline_id}/filter/inlet")
async def filter_inlet(pipeline_id: str, form_data: FilterForm):
if pipeline_id not in app.state.PIPELINES:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,
detail=f"Filter {pipeline_id} not found",
)
The newer version of Open WebUI passes a different pipeline_id parameter format compared to what Pipelines expects. My solution was to modify the Pipelines code to handle this by extracting the last segment of the pipeline_id using pipeline_id.split(".")[-1]. The modified code looks like this:
@app.post("/v1/{pipeline_id}/filter/inlet")
@app.post("/{pipeline_id}/filter/inlet")
async def filter_inlet(pipeline_id: str, form_data: FilterForm):
pipeline_id = pipeline_id.split(".")[-1] # modified
if pipeline_id not in app.state.PIPELINES:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,
detail=f"Filter {pipeline_id} not found",
)
@app.post("/{pipeline_id}/filter/outlet")
async def filter_outlet(pipeline_id: str, form_data: FilterForm):
pipeline_id = pipeline_id.split(".")[-1] # modified
if pipeline_id not in app.state.PIPELINES:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,
detail=f"Filter {pipeline_id} not found",
)
@ennioferreirab commented on GitHub (Aug 4, 2025):
Thank you !
@fight-pig commented on GitHub (Aug 4, 2025):
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。