mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user