Skip to content

Commit

Permalink
Strip backquote from generated filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
kgott authored May 17, 2024
1 parent 4a62feb commit 1f3fae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agents/coder/coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def validate_response(self, response: str) -> Union[List[Dict[str, str]], bool]:
if line.startswith("File: "):
if current_file and current_code:
result.append({"file": current_file, "code": "\n".join(current_code)})
current_file = line.split(":")[1].strip()
current_file = line.split(":")[1].replace("`", "").strip()
current_code = []
code_block = False
elif line.startswith("```"):
Expand Down

0 comments on commit 1f3fae9

Please sign in to comment.