Timothy Jaeryang Baek 5 miesięcy temu
rodzic
commit
0f704f1809
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      backend/open_webui/apps/ollama/main.py

+ 1 - 1
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)