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)