fixing RPM controlelr being set unencessarily

This commit is contained in:
João Moura
2024-02-07 23:09:36 -08:00
parent 2740196c08
commit f727b3f5e2
3 changed files with 26 additions and 3 deletions

View File

@@ -124,7 +124,8 @@ class Crew(BaseModel):
if self.agents:
for agent in self.agents:
agent.set_cache_handler(self._cache_handler)
agent.set_rpm_controller(self._rpm_controller)
if self.max_rpm:
agent.set_rpm_controller(self._rpm_controller)
return self
def _setup_from_config(self):