This commit is contained in:
hiyouga
2024-06-18 22:08:56 +08:00
parent 24c160df3d
commit c96264bc47
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,