fix: ipykernel_error that is Too many open files in system

This commit is contained in:
刘棒棒 2024-03-10 22:18:13 +08:00
parent 79262f392e
commit b5a534d617

View file

@ -503,6 +503,9 @@ class Role(SerializationMixin, ContextMixin, BaseModel):
self.rc.memory.add(rsp) # add to persistent memory
if hasattr(self, "execute_code") and hasattr(self.execute_code, "terminate"):
await self.execute_code.terminate()
return rsp
async def _act_on_task(self, current_task: Task) -> TaskResult: