mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
refac
This commit is contained in:
parent
5c1b3693cf
commit
0f704f1809
@ -288,7 +288,7 @@ async def get_all_models():
|
|||||||
if enable:
|
if enable:
|
||||||
tasks.append(aiohttp_get(f"{url}/api/tags", key))
|
tasks.append(aiohttp_get(f"{url}/api/tags", key))
|
||||||
else:
|
else:
|
||||||
tasks.append(None)
|
tasks.append(asyncio.ensure_future(asyncio.sleep(0, None)))
|
||||||
|
|
||||||
responses = await asyncio.gather(*tasks)
|
responses = await asyncio.gather(*tasks)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user