Commit a9e5003c authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: filter outlet

parent 32a61ea1
...@@ -498,10 +498,10 @@ async def chat_completed(form_data: dict, user=Depends(get_verified_user)): ...@@ -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"]) sorted_filters = sorted(filters, key=lambda x: x["pipeline"]["priority"])
model = app.state.MODELS[model_id] if model_id in app.state.MODELS:
model = app.state.MODELS[model_id]
if "pipeline" in model: if "pipeline" in model:
sorted_filters = [model] + sorted_filters sorted_filters = [model] + sorted_filters
for filter in sorted_filters: for filter in sorted_filters:
r = None r = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment