fix: pipelines

This commit is contained in:
Timothy J. Baek 2024-06-02 16:46:33 -07:00
parent d9a3e4db39
commit 32a61ea15d

View File

@ -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": [