From 5a62304c91a711027f42cc713621b3fa63d73558 Mon Sep 17 00:00:00 2001 From: chloefeal <188809157+chloefeal@users.noreply.github.com> Date: Sun, 12 Jan 2025 22:33:28 +0800 Subject: [PATCH] Fixed typo in `parse_code_blobs` docstring (#155) Fixed typo in `parse_code_blobs` docstring --- src/smolagents/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: