From ead969537b2989dbe0b2136e3c6bb02b90c52073 Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Wed, 4 Sep 2024 20:11:35 -0700 Subject: [PATCH] use get_diff_with_prompts for editing code --- vision_agent/tools/meta_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vision_agent/tools/meta_tools.py b/vision_agent/tools/meta_tools.py index 0b431f19..af28360b 100644 --- a/vision_agent/tools/meta_tools.py +++ b/vision_agent/tools/meta_tools.py @@ -528,7 +528,7 @@ def replacer(match: re.Match) -> str: artifacts[name] = new_code - diff = get_diff(code, new_code) + diff = get_diff_with_prompts(name, code, new_code) print(diff) return diff