chore: use running event loop in async helpers (#821)

This commit is contained in:
Rolly Calma
2026-06-02 11:28:05 +08:00
committed by GitHub
parent c99193041a
commit 32efeeb3a2
4 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ def setup_embedding_routes():
_downloading[model_name] = True
try:
# Run in thread to not block the event loop
loop = asyncio.get_event_loop()
loop = asyncio.get_running_loop()
cache = _cache_dir()
await loop.run_in_executor(
None,