Skip to content

Commit 067a200

Browse files
aseembits93Codeflash Bot
authored andcommitted
bugfix
1 parent 0359923 commit 067a200

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codeflash/api/aiservice.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,9 @@ def get_optimization_review(
582582
"""
583583
diff_str = "\n".join(
584584
[
585-
unified_diff_strings(code1=original_code[p], code2=new_code[p], fromfile=Path(p), tofile=Path(p))
585+
unified_diff_strings(
586+
code1=original_code[p], code2=new_code[p], fromfile=Path(p).as_posix(), tofile=Path(p).as_posix()
587+
)
586588
for p in original_code
587589
if not is_zero_diff(original_code[p], new_code[p])
588590
]

0 commit comments

Comments
 (0)