Update main.py

This commit is contained in:
Michael Poluektov 2024-07-02 10:57:56 +01:00 committed by GitHub
parent afd74213cc
commit 09514751b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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