mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
Update main.py
This commit is contained in:
parent
afd74213cc
commit
09514751b5
1 changed files with 3 additions and 5 deletions
|
|
@ -834,11 +834,9 @@ def filter_pipeline(payload, user):
|
|||
pass
|
||||
|
||||
if "pipeline" not in app.state.MODELS[model_id]:
|
||||
if "title" in payload:
|
||||
del payload["title"]
|
||||
|
||||
if "task" in payload:
|
||||
del payload["task"]
|
||||
for key in ["title", "task", "function"]:
|
||||
if key in payload:
|
||||
del payload[key]
|
||||
|
||||
return payload
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue