mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 22:05:19 +00:00
revert not delete on pipe
This commit is contained in:
parent
02f242e9e8
commit
24c7990fd4
1 changed files with 1 additions and 4 deletions
|
|
@ -833,10 +833,7 @@ def filter_pipeline(payload, user):
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
keep_extras = (
|
if "pipeline" not in app.state.MODELS[model_id]:
|
||||||
"pipeline" in app.state.MODELS[model_id] or "pipe" in app.state.MODELS[model_id]
|
|
||||||
)
|
|
||||||
if not keep_extras:
|
|
||||||
for key in ["title", "task", "function"]:
|
for key in ["title", "task", "function"]:
|
||||||
if key in payload:
|
if key in payload:
|
||||||
del payload[key]
|
del payload[key]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue