mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 17:19:53 +00:00
Update main.py
This commit is contained in:
parent
afd74213cc
commit
09514751b5
@ -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 New Issue
Block a user