mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
refac
This commit is contained in:
parent
5c1b3693cf
commit
0f704f1809
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue