Browse Source

fix: pipelines

Timothy J. Baek 11 tháng trước cách đây
mục cha
commit
32a61ea15d
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      backend/main.py

+ 5 - 1
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": [