mixxing translations

This commit is contained in:
João Moura
2024-12-27 16:17:42 -03:00
parent 2e5bb3f856
commit ffff182033

View File

@@ -105,7 +105,7 @@ class ToolUsage:
self._printer.print(content=f"\n\n{error}\n", color="red")
return error
if isinstance(tool, CrewStructuredTool) and tool.name == 'Add image to content':
if isinstance(tool, CrewStructuredTool) and tool.name == self._i18n.tools("add_image")["name"]:
try:
result = self._use(tool_string=tool_string, tool=tool, calling=calling)
return result