Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
02f242e9
Commit
02f242e9
authored
Jul 02, 2024
by
Michael Poluektov
Browse files
keep title, task, function tags for pipelines
parent
09514751
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
backend/main.py
backend/main.py
+4
-1
No files found.
backend/main.py
View file @
02f242e9
...
@@ -833,7 +833,10 @@ def filter_pipeline(payload, user):
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment