diff --git a/plugin/archivar/router.py b/plugin/archivar/router.py index eee2760..2ea9989 100644 --- a/plugin/archivar/router.py +++ b/plugin/archivar/router.py @@ -598,8 +598,9 @@ class BidirectionalRouter: # Try LLM — expects room ID directly # Semaphore schützt vor parallelen Ollama-Aufrufen (qwen2.5:7b = single-request) async with self._llm_semaphore: - llm_result = await asyncio.to_thread( - self._classifier._llm_raw_sync, prompt + loop = asyncio.get_running_loop() + llm_result = await loop.run_in_executor( + None, self._classifier._llm_raw_sync, prompt ) if llm_result is None: return None, True # LLM-Aufruf fehlgeschlagen