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
a9e5003c
Commit
a9e5003c
authored
Jun 02, 2024
by
Timothy J. Baek
Browse files
fix: filter outlet
parent
32a61ea1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
backend/main.py
backend/main.py
+4
-4
No files found.
backend/main.py
View file @
a9e5003c
...
...
@@ -498,10 +498,10 @@ async def chat_completed(form_data: dict, user=Depends(get_verified_user)):
]
sorted_filters
=
sorted
(
filters
,
key
=
lambda
x
:
x
[
"pipeline"
][
"priority"
])
model
=
app
.
state
.
MODELS
[
model_id
]
if
"pipeline"
in
model
:
sorted_filters
=
[
model
]
+
sorted_filters
if
model
_id
in
app
.
state
.
MODELS
:
model
=
app
.
state
.
MODELS
[
model_id
]
if
"pipeline"
in
model
:
sorted_filters
=
[
model
]
+
sorted_filters
for
filter
in
sorted_filters
:
r
=
None
...
...
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