From 32a61ea15d685efce2617be20553dfc5505df313 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 2 Jun 2024 16:46:33 -0700 Subject: [PATCH] fix: pipelines --- backend/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 44bf8ab74..a28f353aa 100644 --- a/backend/main.py +++ b/backend/main.py @@ -550,7 +550,11 @@ async def get_pipelines_list(user=Depends(get_admin_user)): responses = await get_openai_models(raw=True) print(responses) - urlIdxs = [idx for idx, response in enumerate(responses) if "pipelines" in response] + urlIdxs = [ + idx + for idx, response in enumerate(responses) + if response != None and "pipelines" in response + ] return { "data": [