From 0f704f1809d45069d295efbb1c3d58bf24729755 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 12 Nov 2024 13:57:25 -0800 Subject: [PATCH] refac --- backend/open_webui/apps/ollama/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/apps/ollama/main.py b/backend/open_webui/apps/ollama/main.py index 81b771acb..3afe75866 100644 --- a/backend/open_webui/apps/ollama/main.py +++ b/backend/open_webui/apps/ollama/main.py @@ -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)