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
|
pass
|
||||||
|
|
||||||
if "pipeline" not in app.state.MODELS[model_id]:
|
if "pipeline" not in app.state.MODELS[model_id]:
|
||||||
if "title" in payload:
|
for key in ["title", "task", "function"]:
|
||||||
del payload["title"]
|
if key in payload:
|
||||||
|
del payload[key]
|
||||||
if "task" in payload:
|
|
||||||
del payload["task"]
|
|
||||||
|
|
||||||
return payload
|
return payload
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user