From 1f3fae92d64f62eda3385b9b06cae832951fef00 Mon Sep 17 00:00:00 2001 From: kgott Date: Fri, 17 May 2024 09:36:41 +0700 Subject: [PATCH] Strip backquote from generated filenames Fixes https://github.com/stitionai/devika/issues/566 --- src/agents/coder/coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/coder/coder.py b/src/agents/coder/coder.py index 3e021d61..a396d7df 100644 --- a/src/agents/coder/coder.py +++ b/src/agents/coder/coder.py @@ -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("```"):