Fixed typo in `parse_code_blobs` docstring (#155)

Fixed typo in `parse_code_blobs` docstring
This commit is contained in:
chloefeal 2025-01-12 22:33:28 +08:00 committed by GitHub
parent 320dd77f37
commit 5a62304c91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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: