fix: filter outlet

This commit is contained in:
Timothy J. Baek 2024-06-02 17:49:44 -07:00
parent 32a61ea15d
commit a9e5003c4f

View File

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