small improvements for i18n

This commit is contained in:
João Moura
2024-05-02 04:58:29 -03:00
parent 7973651e05
commit 0a53ce17a2
4 changed files with 13 additions and 8 deletions

View File

@@ -308,7 +308,7 @@ class Crew(BaseModel):
def _run_hierarchical_process(self) -> str:
"""Creates and assigns a manager agent to make sure the crew completes the tasks."""
i18n = I18N(language=self.language, language_file=self.language_file)
i18n = I18N(prompt_file=self.prompt_file)
try:
self.manager_agent.allow_delegation = (
True # Forcing Allow delegation to the manager