diff --git a/src/smolagents/utils.py b/src/smolagents/utils.py index 4e3e727..3983b40 100644 --- a/src/smolagents/utils.py +++ b/src/smolagents/utils.py @@ -106,7 +106,7 @@ def parse_json_blob(json_blob: str) -> Dict[str, str]: def parse_code_blobs(code_blob: str) -> str: - """Parses the LLM's output to get any code blob inside. Will retrun the code directly if it's code.""" + """Parses the LLM's output to get any code blob inside. Will return the code directly if it's code.""" pattern = r"```(?:py|python)?\n(.*?)\n```" matches = re.findall(pattern, code_blob, re.DOTALL) if len(matches) == 0: