Skip to content

Commit 1e89614

Browse files
committed
parse_full_rewrite() falls back to direct pass-through of LLM response, when it does not find code blocks
1 parent 886c1d6 commit 1e89614

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openevolve/utils/code_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def parse_full_rewrite(llm_response: str, language: str = "python") -> Optional[
109109
if matches:
110110
return matches[0].strip()
111111

112-
return None
112+
# Fallback to plain text
113+
return llm_response
113114

114115

115116
def format_diff_summary(diff_blocks: List[Tuple[str, str]]) -> str:

0 commit comments

Comments
 (0)