This commit is contained in:
Timothy Jaeryang Baek 2024-11-12 13:57:25 -08:00
parent 5c1b3693cf
commit 0f704f1809

View File

@ -288,7 +288,7 @@ async def get_all_models():
if enable:
tasks.append(aiohttp_get(f"{url}/api/tags", key))
else:
tasks.append(None)
tasks.append(asyncio.ensure_future(asyncio.sleep(0, None)))
responses = await asyncio.gather(*tasks)