Former-commit-id: 2ab449adbb160f339a0586edeb846fa311ad8382
This commit is contained in:
hiyouga
2024-06-18 22:08:56 +08:00
parent 875270b851
commit 372da52d4a
4 changed files with 4 additions and 16 deletions

View File

@@ -49,8 +49,6 @@ class ChatModel:
self._loop = asyncio.new_event_loop()
self._thread = Thread(target=_start_background_loop, args=(self._loop,), daemon=True)
self._thread.start()
task = asyncio.run_coroutine_threadsafe(self.engine.start(), self._loop)
task.result()
def chat(
self,