mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
keep title, task, function tags for pipelines
This commit is contained in:
parent
09514751b5
commit
02f242e9e8
1 changed files with 4 additions and 1 deletions
|
|
@ -833,7 +833,10 @@ def filter_pipeline(payload, user):
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if "pipeline" not in app.state.MODELS[model_id]:
|
keep_extras = (
|
||||||
|
"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