Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
Fix encoding error when creating tools (#2876)
Vini Brasileb6364284fbd
diff --git a/src/crewai/cli/utils.py b/src/crewai/cli/utils.pyindex 74fc414d9..f88213a58 100644--- a/src/crewai/cli/utils.py+++ b/src/crewai/cli/utils.py@@ -161,7 +161,7 @@ def tree_find_and_replace(directory, find, replace):for filename in files:filepath = os.path.join(path, filename)- with open(filepath, "r") as file:+ with open(filepath, "r", encoding="utf-8", errors="ignore") as file:contents = file.read()with open(filepath, "w") as file:file.write(contents.replace(find, replace))